[commit: packages/base] master: Implement foldl with foldr (b63face)

Roman Cheplyaka 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?

Roman
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://www.haskell.org/pipermail/ghc-devs/attachments/20140217/a66c2776/attachment.sig>


More information about the ghc-devs mailing list