ok so I imagine that this is already in pharo :) Excellent. Stef On Nov 30, 2009, at 8:35 PM, Nicolas Cellier wrote:
2009/11/30 Henrik Sperre Johansen <henrik.s.johansen@veloxit.no>:
On 30.11.2009 19:29, Stéphane Ducasse wrote:
Collections ----------- Conversion of OrderedCollection and SortedCollection to Arrays has been sped up significantly.
Yes, it should be ported to Pharo, I see no reason of divergence there.
Yes and I like the fast in the sentence :) It's probably along the lines of what I did back in August for Pharo, using the array primitives directly, instead of copying the elements one by one.
Cheers, Henry
Oops, sorry, I did not noticed this one in Pharo and just rediscovered it. My implementation is a bit shorter and yours is faster:
asArray "Overriden for speed" ^array copyFrom: firstIndex to: lastIndex
Cheers
Nicolas
_______________________________________________ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
_______________________________________________ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project