but I was comparing with squeak :)
I'm on 2.53 intel core 2 duo so may be the difference is that.
Squeak 4.1.1beta2: #(1357 2129 1457)
Cog: �#(141 844 568)
(2.66 GHz Intel Core i7)
On May 26, 2010, at 7:30 PM, Dale Henrichs wrote:
> St�phane Ducasse wrote:
>> any idea why on pharo 1.1
>> | b n |
>> b := [:aa :ab| ].
>> n := 10000000.
>> { Time millisecondsToRun: [1 to: n do: [:i| b value: 0 value: 0]].
>> � Time millisecondsToRun: [1 to: n do: [:i| b valueWithArguments: {0. 0}]].
>> � Time millisecondsToRun: [1 to: n do: [:i| b valueWithArguments: #(0 0)]] } #(1597 2606 1696)
>
> Presumably the Array constructor {...} is more costly than a literal Array, which makese sense.
>
> Dale
>
> _______________________________________________
> Pharo-project mailing list
> Pharo-project@lists.gforge.inria.fr
> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
_______________________________________________
Pharo-project mailing list
Pharo-project@lists.gforge.inria.fr
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project