[squeak-dev] translated considered harmful (in its current implementation)

Eliot Miranda eliot.miranda at gmail.com
Wed Oct 28 05:58:41 UTC 2020


Hi All,

    I have occasion to simulate the simulator (chancing down a context
manipulation bug).  In doing so I notice that there seems to be some awful
) N^2 behaviour in doing things as straight-forward as setting up the world
menu.  Here's a back trace from the simulator of a current trunk image:

  16r3061C8 M Dictionary>associationsDo: 16r16BC028: a(n) Dictionary
  16r306200 M Dictionary>keysDo: 16r16BC028: a(n) Dictionary
  16r306238 M [] in Dictionary>keys 16r16BC028: a(n) Dictionary
  16r306280 M Array class(SequenceableCollection class)>new:streamContents:
16r16FA068: a(n) Array class
  16r3062C0 M Dictionary>keys 16r16BC028: a(n) Dictionary
  16r3062F0 M PackageOrganizer>packageNames 16r1540BE8: a(n)
PackageOrganizer
  16r306320 M TextDomainManager class>allKnownDomains 16r188A848: a(n)
TextDomainManager class
  16r306358 M ByteString(String)>translatedInAllDomains 16r3479FF8: a(n)
ByteString
  16r306390 M ByteString(String)>translated 16r3479FF8: a(n) ByteString
  16r3063D8 M [] in TheWorldMenu>fillIn:from: 16r3C93C0: a(n) TheWorldMenu
  16r303F38 M Array(SequenceableCollection)>do: 16rB681C8: a(n) Array
  16r303F70 M TheWorldMenu>fillIn:from: 16r3C93C0: a(n) TheWorldMenu
  16r303FC0 I TheWorldMenu>addSaveAndQuit: 16r3C93C0: a(n) TheWorldMenu

I.e. for every item in the world menu we are enumerating over all
packages.  Shurely shome mistake, hic!, ed.
_,,,^..^,,,_
best, Eliot
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20201027/26c27ce4/attachment.html>


More information about the Squeak-dev mailing list