[squeak-dev] The Trunk: Collections-nice.208.mcz

commits at source.squeak.org commits at source.squeak.org
Sun Nov 22 21:10:36 UTC 2009


Nicolas Cellier uploaded a new version of Collections to project The Trunk:
http://source.squeak.org/trunk/Collections-nice.208.mcz

==================== Summary ====================

Name: Collections-nice.208
Author: nice
Time: 22 November 2009, 10:10:09 am
UUID: c77d53b2-acef-48e6-b686-333c323a77a5
Ancestors: Collections-nice.207

Speedup OrderedCollection and SortedCollection asArray (a usual pattern)

size 1 -> 1.6x
size 10 -> 2.8x
size 100 -> 12.1x
size 1000 -> 27.7x

=============== Diff against Collections-nice.207 ===============

Item was added:
+ ----- Method: OrderedCollection>>asArray (in category 'converting') -----
+ asArray
+ 	"Overriden for speed"
+ 	 ^array copyFrom: firstIndex to: lastIndex!




More information about the Squeak-dev mailing list