[Haskell-cafe] [Haskell] Can Haskell use short floats; i.e. 16 bit floats to save space?
Johan Tibell
johan.tibell at gmail.com
Sat Mar 1 07:56:59 UTC 2014
>
> Am 01.03.2014 07:09, schrieb KC:
>
> Can Haskell use short floats; i.e. 16 bit floats to save space?
>>
>
GHC pads all basic data types to one word in its in-memory representation,
so no. It's possible that the boxed vectors in the "vector" package has a
more compact representation for arrays of Floats.
-- Johan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/haskell-cafe/attachments/20140301/ff78a154/attachment.html>
More information about the Haskell-Cafe
mailing list