Skip to content

Replace _simple_case_mappings with a sorted array - #24

Closed
samhocevar wants to merge 1 commit into
yhirose:masterfrom
samhocevar-forks:patches/case-mappings-optim
Closed

samhocevar wants to merge 1 commit into
yhirose:masterfrom
samhocevar-forks:patches/case-mappings-optim

Conversation

@samhocevar

Copy link
Copy Markdown
Contributor

This change results in a small 7% speed improvement in simple_case_mapping() but the main advantage is that _simple_case_mappings is now a static object that requires no runtime initialization or heap allocations.

This change results in a small 7% speed improvement in simple_case_mapping()
but the main advantage is that _simple_case_mappings is now a static object
that requires no runtime initialization or heap allocations.
@yhirose

yhirose commented Aug 26, 2026

Copy link
Copy Markdown
Owner

@samhocevar I took the different approach. Please see #25.

@yhirose yhirose closed this Aug 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants