
17 Feb
2014
17 Feb
'14
5:56 a.m.
* Simon Marlow
This worries me a bit. If foldl isn't inlined, I get a less efficient version, so it has to be inlined everywhere. So -O0 code gets worse, and binary sizes for -O1+ get bigger - foldl, sum, and product are now INLINE.
Correct me if I'm wrong, but if sum and product are not inlined, they will be computed using the terrible lazy fold. Isn't this a good reason to inline them anyway? Roman