3 ms·
You will probably see better performance if you write your own string deduplication. https://shipilev.net/jvm-anatomy-park/10-string-intern/ https://shipilev.n
by nalllar 9y ago
You will probably see better performance if you write your own string deduplication.
https://shipilev.net/jvm-anatomy-park/10-string-intern/ https://shipilev.net/jvm-anatomy-park/10-string-intern/
> In almost every project we were taking care of, removing String.intern() from the hotpaths, or optionally replacing it with a handrolled deduplicator, was the very profitable performance optimization. Do not use String.intern() without thinking very hard about it, okay?