Hello Cafe,
> Currently, UUID
is represented as
data UUID = UUID
{-# UNPACK #-} !Word32
{-# UNPACK #-} !Word32
{-# UNPACK #-} !Word32
{-# UNPACK #-} !Word32
> However, this suboptimal for 64bit archs (where GHC currently stores this a 320-byte Heap object); ...
According to
https://wiki.haskell.org/GHC/Memory_Footprint I can understand each evaluated `Word32` on 64-bit hardware can take 2 words - 16 bytes, and given they are unpacked and strict, I think one whole UUID record should just take 64 bytes plus a few words, which is far less than 320 bytes. So how comes the 320 bytes?
Thanks with regards,
Compl