Pointer-or-Int 63-bit representations for Integer

Chris Done ghc-devs at chrisdone.com
Mon Mar 8 17:46:07 UTC 2021


Hi all,

I did a trivial test, in case anybody's interested, in the unboxed sum idea approach, only considering the Int# branch.

https://gist.github.com/chrisdone/6aef640a49fc30b45ad210eac287dce9

It seems to be on par with Int, which is pretty cool because I wasn't sure what to expect. Assuming I didn't make a horrible mistake.

`B = 272.2 μs`
`Int = 270.9 μs  `
`Integer = 7.860 ms `

Cheers,

Chris
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/ghc-devs/attachments/20210308/cbf4859f/attachment.html>


More information about the ghc-devs mailing list