March 25, 2014
1:18 a.m.
Alexandre wrote:
I am working on a memory model for expandable collection in Pharo. Currently, OrderedCollection, Dictionary and other >expandable collections use a internal array to store their data. My new collection library recycle these array instead of letting >the garbage collector dispose them. I simply insert the arrays in an ordered collection when an array is not necessary >anymore. And I remove one when I need one.
I hope you have large collections use multiple arrays? In other systems Iâve mostly found copying/moving the arrays to be more of a bottleneck. Why do you use 15% less memory? Stephan