> 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 :)

Context :)
Thanks.

I will add a comment to flatCollectAsSet: going in that direction.

Stef


_______________________________________________
Pharo-project mailing list
[email protected]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project

Reply via email to