Add benchmark to test fastCodePointCount#140591
Merged
parkertimmins merged 6 commits intoelastic:mainfrom Mar 9, 2026
Merged
Conversation
Collaborator
|
Hi @parkertimmins, I've created a changelog YAML for you. |
Contributor
Author
|
Results: The new method is slightly slower on strings of lengths 1 and 10 characters: in the tests around 5-8% slower. On strings of length 100, the new version is 2.4x as fast on ascii, and 5x as fast on unicode. For strings of length 1000, the new version is 6x as fast on ascii, and 9.5x as fast on unicode. |
Collaborator
|
Pinging @elastic/es-storage-engine (Team:StorageEngine) |
nik9000
approved these changes
Jan 14, 2026
parkertimmins
added a commit
to parkertimmins/elasticsearch
that referenced
this pull request
Mar 9, 2026
This reverts commit 462a4c1.
parkertimmins
added a commit
that referenced
this pull request
Mar 9, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add benchmark for fastCodePointCount added in #140388