Re:String Deduplication – A new feature in Java 8 Update 20
by karthikkolli on Monday September 01, 2014 @03:17PM
(#8254292)
Sorry deduplication was a typo. Corrected
[ Parent
| on HN ]
Re:String Deduplication – A new feature in Java 8 Update 20
by chrisseaton on Monday September 01, 2014 @03:26PM
(#8254328)
Ah right. The reason they're doing it in the GC rather than in the mutator threads is that it only has an impact on strings long lived enough to be evacuated. Short lived strings don't get deduplicated, and probably don't need to be. Without the GC I don't know how you'd automatically determine that it was a good idea to deduplicate.