2 ms·
the guava library has an interner that does exactly what you'd want for a cache of strings, without blowing up the jvm's internal code cache (which iirc is what
by chii 4y ago
the guava library has an interner that does exactly what you'd want for a cache of strings, without blowing up the jvm's internal code cache (which iirc is what String.intern() uses). https://guava.dev/releases/22.0/api/docs/com/google/common/collect/Interners.html https://guava.dev/releases/22.0/api/docs/com/google/common/c...