On 18 October 2010 23:41, Nicolas Cellier <nicolas.cellier.aka.nice@gmail.com> wrote:
2010/10/18 Igor Stasenko <siguctua@gmail.com>:
On 18 October 2010 23:18, Nicolas Cellier <nicolas.cellier.aka.nice@gmail.com> wrote:
2010/10/17 Levente Uzonyi <leves@elte.hu>:
On Sat, 16 Oct 2010, Bart Veenstra wrote:
Hi list,
I have been working with Pharo for almost a month now, and I suspect that the performance is degrading fast. UI tasks takes several seconds to react to my keyboard.
That kind of sluggishness is probably related to finalization/gc. Please send us the result of the following expression:
(WeakArray classPool at: #FinalizationDependents) Â Â Â Â select: [ :each | each notNil ] Â Â Â Â thenCollect: [ :each | each class -> each size ]
While updating pharo 1.2, after an EndOfCentralDirectory error, I got a very unresponsive image...
((WeakArray classPool at: #FinalizationDependents) as: Array) Â Â Â select: [ :each | each notNil ] Â Â Â thenCollect: [ :each | each class -> each size] -> {(WeakIdentityKeyDictionary->22370).
This is an MC cache. And major reason of image slowdown.
Levente did this simplification in trunk:
cachedDefinitions     ^definitions ifNil: [ definitions := WeakIdentityKeyDictionary new ]
It would be worth a try in Pharo.
I disagree. Its not a simplification. Its a bug fix! :) Recently, i provided the similar thing for Pharo (didn't knew it was already fixed for Squeak): http://code.google.com/p/pharo/issues/detail?id=3048
Nicolas
-- Best regards, Igor Stasenko AKA sig.