[Haskell-cafe] Using unboxed integers

Zemyla zemyla at gmail.com
Thu Nov 3 10:17:24 UTC 2016


If you look at the Core GHC produces (with -ddump-simpl), you'll probably
see that the Ints have been unboxed for as many operations as possible, so
manual unboxing won't make that much difference.

On Nov 2, 2016 1:15 AM, "Richard A. O'Keefe" <ok at cs.otago.ac.nz> wrote:

> import GHC.Base
> isTrue# (comparison)
> show (I# x#)
> worked.  Thank you very much.
>
> This made a barely measurable difference to my program, so I now that
> I know how to use unboxed integers, I can forget again.
> _______________________________________________
> Haskell-Cafe mailing list
> To (un)subscribe, modify options or view archives go to:
> http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe
> Only members subscribed via the mailman list are allowed to post.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/haskell-cafe/attachments/20161103/e8c34f89/attachment.html>


More information about the Haskell-Cafe mailing list