[Etoys] Questions questions

Yoshiki Ohshima yoshiki at vpri.org
Mon Nov 12 03:13:13 EST 2007

  Hi, Luke,

> Finally I've found a performance-degradation problem with
> Morph>>duplicate that I haven't figured out how to reproduce from a
> fresh image. In one of my images Morph>>duplicate is spending lots of
> time (600ms on a fast machine) searching for a unique name in the
> series Sketch1/Sketch2/etc. It seems to be rejecting thousands of
> names that have actually fallen out of use (their morphs have been
> garbage collected). In this image I've found the following dubious
> change helpful in PasteUpMorph>>uniqueNameForReferenceFor:
> old: ((self referencePool includesKey: nameSym) not and:
> new: (((self referencePool at: nameSym ifAbsent: nil) isNil) and:
> because many names are present as keys in the referencePool with value
> nil. I'm not sure if this is the right thing or how I ended up with so
> many names in use.

  I don't know why you have thousands of them there, but please update
your image at least to 1755, and go to the problematic project, and

  ActiveWorld cleanUpReferences

this would remove the references to objects that are already garbage

-- Yoshiki

More information about the Etoys mailing list