Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!cs.utexas.edu!csc.ti.com!ti-csl!tilde.csc.ti.com!ticipa!ticipa!huggins From: huggins@ticipa.ti.com (Gray Huggins) Newsgroups: comp.lang.smalltalk Subject: performance of IdentityDictionary in st80 r4 Message-ID: Date: 12 Jun 91 15:27:24 GMT Sender: usenet@ticipa.pac.sc.ti.com (USENET News System) Reply-To: huggins@ticipa.csc.ti.com Distribution: comp Organization: Process Automation Center Lines: 35 Hi, We have noticed a big difference between populating an IdentityDictionary with 15000 entries and one with 30000 entries. - Why? - What can be done to improve performance? - Why do we get "a primitive has failed" when we do really big stuff without garbage collecting? Here is our test 1) | a | a := IdentityDictionary new. Time millisecondsToRun: [ 1 to: 15000 do: [ :i | a at: DummyClass new put: i]] Result => 11390 milliseconds 2) | a | a := IdentityDictionary new. Time millisecondsToRun: [ 1 to: 30000 do: [ :i | a at: DummyClass new put: i]] Result => 1049351 milliseconds Regards, -- Gray Huggins Internet: huggins@ticipa.csc.ti.com Texas Instruments PO Box 655012 M/S 3635 TI MSG: GHUG Dallas, TX 75265 Voice: (214) 917-2202