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
[email protected]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project

Reply via email to