You can now do

findTime := [unsent := SystemNavigation default
unsentMessagesInPackageNamed: '*'] timeToRun

in the time it used to take for Morphic alone. (about 30 mins)
That's the entire system btw, 7486  unsents in my core image ;)

Cheers,
Henry


Den 05.02.2010 14:11, skrev Stéphane Ducasse:
> [update 1.1] #11196
> 11196
> -----
>
> - faster isUnsentMessage: tx Henrik
>
>
>
>
>
> On Feb 5, 2010, at 1:54 PM, Henrik Johansen wrote:
>
>   
>> Den 05.02.2010 11:15, skrev Laval Jannik:
>>     
>>> Hi all,
>>>
>>> I have used SystemNavigation>>unsentMessagesInPackageNamed:
>>> on the package Morphic.
>>>
>>>       
>> Wow, I feel your pain, the runtime of that method is quite brutal for
>> large packages...
>>
>> Find attached a somewhat faster (but still slow) implementation.
>>
>> Test:
>> findTime := [unsent := SystemNavigation default
>> unsentMessagesInPackageNamed: 'Morphic'] timeToRun
>>
>> Numbers on my machine:
>> Current:
>> findTime - 29 minutes, 35 seconds.
>> unsent size - 531
>>
>> Attached:
>> findTime - 3 minutes, 9 seconds.
>> unsent size - 531
>>
>> Cheers,
>> Henry
>> <UnsentTesting.1.cs>_______________________________________________
>> Pharo-project mailing list
>> [email protected]
>> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
>>     
>
> _______________________________________________
> Pharo-project mailing list
> [email protected]
> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
>
>
>   

_______________________________________________
Pharo-project mailing list
[email protected]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project

Reply via email to