[squeak-dev] Re: Re: Loading my monticello package - very slow at end; how to diagnose?

Bert Freudenberg bert at freudenbergs.de
Thu Dec 4 17:06:36 UTC 2008


On 04.12.2008, at 17:22, Sophie (itsme213) wrote:

> "Bert Freudenberg" <bert at freudenbergs.de> wrote
>
>>>> On Thu, Dec 4, 2008 at 3:12 AM, Sophie (itsme213) wrote:
>>>>> When I load my monticello package into Damien's 3.10 web image,  
>>>>> the
>>>>> progress
>>>>> bar moves really quickly to about the 99% mark, then pauses  
>>>>> there  for
>>>>> a
>>>>> good
>>>>> 15 seconds.
>
>>
>> Press Alt-. to see what it's doing.
>>
>
> It is still showing the "Loading" progress bar, has not yet reached  
> the
> "Initializing" progress bar.
>
> A series of Alt-. suggests that that final "Loading" pause is spent  
> in this
> kind of stack:
>
> MCPackageLoader>>basicLoad
> MethodAddition>>notifyObservers
>  SystemChangeNotifier>>methodAdded:selector:inProtocol:..
>   ...
>    PackageInfo>>includesClass:
>     SystemOrganizer>>listAtCategoryNamed:
>      Array>>indexOf:ifAbsent:
>
> Perhaps a lot of category searching within a (UI-motivated?)  
> notifyObservers
> ? Hmmm. Not likely something my code causes.


Unlikely indeed.

If you wanted to get to the root of this you would have to add a bit  
of profiling code, trying to isolate the part that takes so much time.

It's amazing what you can do with a bit of profiling.

- Bert -





More information about the Squeak-dev mailing list