News for hackers. Stuff that matters.
Re:String.intern() by wtetzner on Monday May 15, 2017 @10:25PM (#14346939)
Yeah, blindly interning strings isn't a good idea, but it can be useful for certain use cases. For example, keys of maps where you know the keys won't vary much. It can reduce memory usage, and improve lookup performance (since doing a lookup requires a string comparison).

There are no comments on this comment yet.