OrderedDictionary (was: Re: [squeak-dev] Re: The Trunk:
Collections-mt.593.mcz)
Marcel Taeumel
marcel.taeumel at student.hpi.uni-potsdam.de
Fri Jan 16 13:54:20 UTC 2015
Ah, okay. I was curious about the performance of iterating over an array vs.
the linked list:
a := Array new: 1000.
l := LinkedList new.
1000 timesRepeat: [l add: (StackLink with: nil)].
[a do: [:ea | 1 + 2]] bench. "'94,600 per second.'"
[l do: [:ea | 1 + 2]] bench. "'159,000 per second.'"
I expected the opposite! :-O Why is that so?
Best,
Marcel
--
View this message in context: http://forum.world.st/The-Trunk-Collections-mt-593-mcz-tp4799750p4799893.html
Sent from the Squeak - Dev mailing list archive at Nabble.com.
More information about the Squeak-dev
mailing list
|