That is not real amount of objects in the object memory:

count := 0.
object := 0 someObject.
[object == 0] whileFalse: [
    count := count + 1.
    object := object nextObject ].
count. "->724653"

2016-04-20 15:18 GMT+02:00 Denis Kudriashov <[email protected]>:

> And here other interesting results:
>
> Class allSubInstances size.
>  "5636"
> Object allSubclasses size
>  "11267"
>
> What they are not almost equal?
>
> 2016-04-20 14:54 GMT+02:00 Pavel Krivanek <[email protected]>:
>
>> Interesting. It takes very high amount of time on Pharo 2.0 too.
>>
>> -- Pavel
>>
>> 2016-04-20 14:26 GMT+02:00 Bernhard Pieber <[email protected]>:
>>
>>> Dear Pharoers,
>>>
>>> I found something strange:
>>> Time millisecondsToRun: [ Class allSubInstances size ]. „23617"
>>>
>>> I did this on a new Pharo 5 image
>>> curl get.pharo.org/alpha+vmLatest | bash
>>>
>>> Can somebody confirm this on their machine? What might be the reason?
>>>
>>> Cheers,
>>> Bernhard
>>>
>>
>>
>

Reply via email to