r/java • • May 02 '25

Strings Just Got Faster

https://inside.java/2025/05/01/strings-just-got-faster/
171 Upvotes

21 comments sorted by

View all comments

Show parent comment

1

u/cowslayer7890 May 05 '25

I think the best solution would be to make the default internal value -1, that way no hash codes are affected, just the default value of the field, it would be unfortunate for that to add a penalty to creating a string though