-
Notifications
You must be signed in to change notification settings - Fork 8k
ext/intl: Reduce the number of memory allocations (grapheme_levenshtein)
#18476
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
ext/intl: Reduce the number of memory allocations (grapheme_levenshtein)
#18476
Conversation
16fc2df to
e669e68
Compare
e669e68 to
92d3e78
Compare
|
Not sure I m liking this. Not saying it won t get merged eventually though. Is there an issue with the actual code ? |
|
@devnexen |
|
cc @youkidearitai if you want to spin your opinion too. |
|
If you want to do this, and I doubt this matters a lot for performance, you can do |
|
@nielsdos |
In this case, wouldn't the maximum allocatable memory be cut in half on a 32-bit system? edit: This is just a question out of curiosity. |
The total amount of allocated bytes don't change when you do that. If it overflows it wouldn't have fit two allocation either. So how would that change the maximum? |
|
@nielsdos |
|
No matter how many times I measure it, the improvement is negligible... |
|
@SakiTakamachi If you improve performance this function, I like improve how to use ICU library. |
No description provided.