Re: String.interning is surprisingly cpu-consuming.

2018-02-27 Thread Dr Heinz M. Kabutz
Funny coincidence, I mention this in todays' "Java Specialists' Newsletter": https://www.javaspecialists.eu/archive/Issue254.html And I believe they improved this in Java 9 :-) Regards Heinz -- Dr Heinz M. Kabutz (PhD CompSci) Author of "The Java™ Specialists' Newsletter" -

String.interning is surprisingly cpu-consuming.

2018-02-27 Thread John Hening
Hello! I have the very simple Utils function: public static Unsafe getUnsafe(){ Field f = Unsafe.class.getDeclaredField("theUnsafe"); f.setAccessible(true); return (Unsafe) f.get(null); } And, as it turned out from my analysis with perf it is a bottleneck in my "scheme" of