Color>>#hash

Raab, Andreas Andreas.Raab at disney.com
Mon Mar 1 02:07:49 UTC 1999


Andres,

> No kidding Color>>#hash is not good enough! I changed the cache's
> implementation
> from a Dictionary to a coupled SortedCollection pair and the execution
> time went
> down from 4m 15s to 1m 30s!!!
> 
Looks like you should use a PluggableDictionary instead. They allow you to
supply a custom hash (and equality) block for exactly this kind of operation
where you basically have some good assumptions about the size and the
distribution of objects. Give it a try.

> By the way, if you get aForm and send edit to it in a morphic world, it
> hangs
> until you press ctrl-break, gives out a strange error and you can continue
> by
> aborting it. And when you get up to the parent (still MVC) project, all
> your
> aborted edits appear on the screen... ???.
> 
Yup. #edit is a leftover from MVC where it opens a BitEditor on the form.
This should be fixed to open up a SketchEditorMorph when running in Morphic.

  Andreas

--
PLEASE NOTE NEW EMAIL ADRESS!

+===== Andreas Raab ========= (andreasr at wdi.disney.com) ==+
| Walt Disney Imagineering        Phone: +1 818 544 5016  I
I Glendale, CA                    Fax:   +1 818 544 4544  I
+======< http://isgwww.cs.uni-magdeburg.de/~raab >========+





More information about the Squeak-dev mailing list