[Haskell-cafe] [Haskell] Can Haskell use short floats; i.e. 16 bit floats to save space?
jwlato at gmail.com
Sat Mar 1 16:15:26 UTC 2014
Did you mean unboxed vectors? Storable vectors will store an Int16 in 16
bits, so that's another approach.
On Fri, Feb 28, 2014 at 11:56 PM, Johan Tibell <johan.tibell at gmail.com>wrote:
> 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
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Haskell-Cafe