News for hackers. Stuff that matters.
Re:Java 7 changed the structure of String by jkot on Friday July 10, 2015 @04:35AM (#9862866)
String on its own is inefficient class. There is extra pointer, int field... ASCII strings are not downgraded from char[] to byte[]... You get big performance bonus just by replacing String with raw byte[].

I wrote Map<String,String> which does this transparently, and it consumes about 5x less memory compared to HashMap<String,String>.

Re:Java 7 changed the structure of String by MichaelGG on Friday July 10, 2015 @05:52AM (#9863060)
Yeah I wish C# had a flag for this. UTF-16 is stupid, and in so, so many cases, it's just a pure loss with no benefits at all.
Re:Java 7 changed the structure of String by joajoa on Friday July 10, 2015 @05:44AM (#9863039)
Re:Java 7 changed the structure of String by hyperpape on Friday July 10, 2015 @09:15AM (#9863731)
It's been a little while since I read the method dispatch post...can you explain what you're driving at?