Comment

Comment by nimrody

No. The string hash is stored as part of the String object. It is initialized to 0 but gets set to the real hash of the string on first call to hashCode()

(which is why it will be computed over and over again if your special string happens to hash to 0)

parent nimrody 1 year ago

No comments yet

Be the first to share your thoughts.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton