[squeak-dev] [Performance] #printString and Array ... (Example: LRUCache)

Marcel Taeumel marcel.taeumel at student.hpi.uni-potsdam.de
Mon Jan 19 10:07:13 UTC 2015


Hi, there!

c := LRUCache someInstance.
(c instVarNamed: #map) size.  "47"
[(c instVarNamed: #head) printString size] timeToRun. "1825"

If this cache grows, #printString gets very slow. 

c := LRUCache allInstances first.
(c instVarNamed: #map) size. "4952"
[(c instVarNamed: #head) printString size] timeToRun. "Well..."

Any ideas how to fix that?

Best,
Marcel



--
View this message in context: http://forum.world.st/Performance-printString-and-Array-Example-LRUCache-tp4800322.html
Sent from the Squeak - Dev mailing list archive at Nabble.com.


More information about the Squeak-dev mailing list