-Can we use String.intern inside WritableUtils#readString()?
Bhallamudi Venkata Siva K... 2012-07-12, 13:02
I noticed that WritableUtils.readString(), while deserializing the
strings, creates a string object every time. But there may be
applications, which serialize a small no of the strings, a huge number
of times. So while deserializing them, this may lead to OOMs sometimes.
I think using intern() will reduce the creation of the number of
String objects. Please correct me if my understading is wrong.
Ramkumar Vadali 2012-07-12, 18:27
Robert Evans 2012-07-13, 14:57