[commit: packages/base] master: Implement foldl with foldr (b63face)
roma at ro-che.info
Mon Feb 17 10:56:05 UTC 2014
* Simon Marlow <marlowsd at gmail.com> [2014-02-17 10:22:48+0000]
> 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?
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 819 bytes
Desc: Digital signature
More information about the ghc-devs