String.intern in Java 6, 7 and 8 - string pooling - Java Performance Tuning Guide
Menu String.intern method was implemented in Java 6 and what changes were made in it in Java 7 and Java 8. First of all I want to thank Yannis Bres for inspiring me to write this article. 07 June 2014 update: added 60013 as a default string pool size since Java 7u40 (instead of Java 8), added -XX:+PrintFlagsFinal This is an updated version of this article including -XX:StringTableSize=N String.intern() String pooling String pooling (aka string canonicalisation) is a process of replacing several String objects with equal value but different identity with a single shared String object. You can achieve this goal by keeping your own MapRead full article from String.intern in Java 6, 7 and 8 - string pooling - Java Performance Tuning Guide
No comments:
Post a Comment