Dec. 28, 2009
5:21 p.m.
Stéphane Ducasse <stephane.ducasse@...> writes:
I don't think that growing a Set is faster than growing an Array, then converting it to a Set, but let's see the numbers:
"Prepare an array with 10000 elements, each element is an array with one integer. 10% is duplicate."
This is something I can understand. So we will fix that.
This is rather a matter of memory. The use case in Moose back then used to be closer to 10 million objects with a set of eventual size of 100 element. So the intend is to avoid allocating 40 MB of memory when all you need is a set of 100 elements. So at least in Moose, you should keep it :) --AA