Hi Pavel,
On Apr 20, 2016, at 6:54 AM, Pavel Krivanek <pavel.krivanek@gmail.com> wrote:
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"
Right. allObjects size is approximately equal to Object allSubInstances (but much faster to evaluate, since it makes only a single heap traversal). Class allSubInstances answers only classes, not those class's instances.
2016-04-20 15:18 GMT+02:00 Denis Kudriashov <dionisiydk@gmail.com>:
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 <pavel.krivanek@gmail.com>:
Interesting. It takes very high amount of time on Pharo 2.0 too.
-- Pavel
2016-04-20 14:26 GMT+02:00 Bernhard Pieber <bernhard@pieber.com>:
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