Re:JEP254: proposal to represent Java Strings as ISO-8859-1
by blibble on Friday May 15, 2015 @02:01PM
(#9552406)
I would imagine most of the time would likely be spent traversing the object graph (i.e. chasing references), making it O(number of references) rather than O(allocated size)
[ Parent
| on HN ]
Re:JEP254: proposal to represent Java Strings as ISO-8859-1
by Skinney on Friday May 15, 2015 @07:12PM
(#9554237)
Larger allocations causes the heap to fill up faster, causing garbage collection to happen more often (more traversing the graph). Also, a generational garbage collector like you have in Java will copy survivors to a new heap. The larger the object, the more you will have to copy.