May 26, 2010
5:30 p.m.
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