4 ms·
Nothing stops the jvm from caching hashes even if the hashes are unique per process invocation.
by yxhuvud 1y ago
Nothing stops the jvm from caching hashes even if the hashes are unique per process invocation.
- PaulHoule 1y agoThey aren’t and it’s quite unfortunate that the empty string hashes to 0 so it will have to recompute every time although presumably it is quick to compute the hash of the empty string.