-
Notifications
You must be signed in to change notification settings - Fork 113
optimize utf8_length_from_latin1 for short strings #499
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
cc @ronag |
|
I'm not sure how to read those bench results? WHat's before and after? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure what is going on in the SIMD variations but left some comments on the scalar one.
Co-authored-by: Robert Nagy <[email protected]>
Co-authored-by: Robert Nagy <[email protected]>
The reference is |
Co-authored-by: Robert Nagy <[email protected]>
Using this UTF8 short file:
https://github.com/lemire/unicode_lipsum/tree/main/short
Run the benchmark...
GCC 12, Intel Ice Lake:
LLVM 16, Apple Silicon M2:
See nodejs/node#54345