Time millisecondsToRun: [| view | view := MOViewRenderer new. view nodes: (1 to: 50) forEach: [:each | view nodes: (1 to: 10) forEach: [:ea | view nodes: (1 to: ea * each). view gridLayout]. view gridLayout]. view open]
=> 18955 in Pharo => 23566 in VW
:-)
And I am sure there are rooms for improvement (IdentityDictionary are used with a small number of elements, a lot of OrderedCollection are used, ...)
Alexandre
Sounds interesting :)
Doru
On 24 Feb 2009, at 00:54, Alexandre Bergel wrote:
Time millisecondsToRun: [| view | view := MOViewRenderer new. view nodes: (1 to: 50) forEach: [:each | view nodes: (1 to: 10) forEach: [:ea | view nodes: (1 to: ea * each). view gridLayout]. view gridLayout]. view open]
=> 18955 in Pharo => 23566 in VW
:-)
And I am sure there are rooms for improvement (IdentityDictionary are used with a small number of elements, a lot of OrderedCollection are used, ...)
Alexandre
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;: Alexandre Bergel http://www.bergel.eu ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
-- www.tudorgirba.com
"Relationships are of two kinds: those we choose and those that happen. They both matter."
did you check in pharo you get some really specific and fast array subclasses that we implemented by nathanael. So may be you can use them to. For orderedCollection if you preallocate the size you can also get a good speed up.
Stef
On Feb 24, 2009, at 12:54 AM, Alexandre Bergel wrote:
Time millisecondsToRun: [| view | view := MOViewRenderer new. view nodes: (1 to: 50) forEach: [:each | view nodes: (1 to: 10) forEach: [:ea | view nodes: (1 to: ea * each). view gridLayout]. view gridLayout]. view open]
=> 18955 in Pharo => 23566 in VW
:-)
And I am sure there are rooms for improvement (IdentityDictionary are used with a small number of elements, a lot of OrderedCollection are used, ...)
Alexandre
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;: Alexandre Bergel http://www.bergel.eu ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
did you check in pharo you get some really specific and fast array subclasses that we implemented by nathanael. So may be you can use them to. For orderedCollection if you preallocate the size you can also get a good speed up.
I will yes. Thanks for the advice
Alexandre
Stef
On Feb 24, 2009, at 12:54 AM, Alexandre Bergel wrote:
Time millisecondsToRun: [| view | view := MOViewRenderer new. view nodes: (1 to: 50) forEach: [:each | view nodes: (1 to: 10) forEach: [:ea | view nodes: (1 to: ea * each). view gridLayout]. view gridLayout]. view open]
=> 18955 in Pharo => 23566 in VW
:-)
And I am sure there are rooms for improvement (IdentityDictionary are used with a small number of elements, a lot of OrderedCollection are used, ...)
Alexandre
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;: Alexandre Bergel http://www.bergel.eu ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev