Thanks to visit codestin.com
Credit goes to Github.com

Skip to content

Conversation

@headius
Copy link
Member

@headius headius commented Dec 18, 2025

Previously the long form of the FString was cached and returned by longHashCode, but that value is actually just an int and can also be returned by hashCode. We can also pre-allocate and cache the fixnum version of the hash so it does not have to be created each time it is used from Ruby.

Found while working on performance optimizations for Puma in puma/puma#3838.

Previously the long form of the FString was cached and returned
by longHashCode, but that value is actually just an int and can
also be returned by hashCode. We can also pre-allocate and cache
the fixnum version of the hash so it does not have to be created
each time it is used from Ruby.

Found while working on performance optimizations for Puma in
puma/puma#3838.
@headius headius added this to the JRuby 10.1.0.0 milestone Dec 18, 2025
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.

1 participant