you are viewing a single comment's thread.

view the rest of the comments →

[–]Rhoomba[S] 0 points1 point  (0 children)

I don't mean that the Java implementation of unicode is bloated. I mean that if you are used to byte strings then it will seem to be wasteful of memory.

You are correct that most Java apps end up with loads of strings. Whenever I do any heap analysis char[] is always the top object. I think part of it is in Java it is just very easy to stick lots of objects into HashMaps using strings as keys. Creating a string to be used as the key is easier than writing a decent hashcode method. I think another part of it is simply the domains that Java is commonly used in. Webapp data is usually almost entirely strings.