[ENH] FasterPrefs-nk

ned konz ned at bike-nomad.com
Thu Feb 15 07:30:26 UTC 2001


"Change Set:		FasterPrefs-nk
Date:			14 February 2001
Author:			Ned Konz

I noticed that Preferences higherPerformance
is being called from the main UI loop. Then I noticed
that this results in a lookup in a Dictionary, not an
IdentityDictionary, despite the fact that the keys are all
symbols.

This change set changes the Preferences FlagDictionary
into an IdentityDictionary.

It will report how much faster your Preferences flags
have become if you have a Transcript open (if you care).

On my system, a flag lookup went from 216usec to 28usec."!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: FasterPrefs-nk.cs.gz
Type: application/octet-stream
Size: 713 bytes
Desc: not available
Url : http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20010214/c7512892/FasterPrefs-nk.cs.obj


More information about the Squeak-dev mailing list