[Haskell-cafe] GHC worker/wrapper on multiple return values
Tyson Whitehead
twhitehead at gmail.com
Thu Feb 18 15:48:33 UTC 2016
On Wednesday, 17 February 2016 23:00:07 UTC-5, Tyson Whitehead wrote:
>
> ... Doing the same thing within the IO monad (effectively lifting the
> return value above into a unboxed tupple)
>
> ...
>
> you don't get boxing and unboxing the return value between l1 and l2.
> This has quite a dramatic effect when l2 doesn't do the that much work
> (massive amounts of additional memory allocation and a 2x slow down).
>
That of course should have read "Doing the same thing within the IO monad
(...) you get boxing and unboxing of the return value between l1 and l2..."
(i.e., no "don't").
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/haskell-cafe/attachments/20160218/46431168/attachment.html>
More information about the Haskell-Cafe
mailing list