
11 Sep
2010
11 Sep
'10
11:38 a.m.
On Sat, Sep 11, 2010 at 4:16 PM, Daniel Fischer
... I don't pretend to understand at the processor level why f4's loop is faster that f2's and f3's, but I've observed on several occasions that parameter order plays a big rĂ´le for performance. Apart from the rule to order them in increasing order of variation, on my box, getting Int# parameters first (in the core) is better (in particular, getting them before Double# parameters, doesn't seem to make so much difference for lists or boxed types in general), so that might explain the difference. ...
Thanks, I'll keep that in mind. Bas