3 ms·
Tl;dr: > In almost every project we were taking care of, removing String.intern() from the hotpaths, or optionally replacing it with a handrolled deduplicator,
by metadat 4y ago
Tl;dr:
> 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?
Overall fantastic article covering intern() in depth!
The only thing I'd like to see added would be visual graphs instead of numeric tables for the benchmark results.