Pharo image: Pharo | Pharo-core
PharoCore1.0rc1 Latest update: #10502
VM: unix - i686 - linux-gnu - Pharo0.1 of 16 May 2008 [latest update: 
#10074]

Steps to reproduce:
1.[Object allSubInstances size inspect] timeToRun  375479 (6 minutes)

with fix
[Object allSubInstances size inspect] timeToRun  22335 (22 seconds)

Attached treats Object as a special case, and takes advantage of primitive 
in SystemNavigation>>allObjectsDo: 

Test also attached (it's slow without the mod)
http://code.google.com/p/pharo/issues/detail?id=1634
http://code.google.com/p/pharo/issues/detail?id=1634 

http://n2.nabble.com/file/n4189848/BehaviorTest-testAllObjectsPerformance.st
BehaviorTest-testAllObjectsPerformance.st 
http://n2.nabble.com/file/n4189848/Behavior-allSubInstancesDo.st
Behavior-allSubInstancesDo.st 

http://n2.nabble.com/file/n4189848/Behavior-allSubInstancesDo.st
Behavior-allSubInstancesDo.st 
-- 
View this message in context: 
http://n2.nabble.com/Issue-1634-Object-allSubInstances-slooooow-tp4189848p4189848.html
Sent from the Pharo Smalltalk mailing list archive at Nabble.com.

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

Reply via email to