[Haskell-cafe] bytestring vs. uvector

Don Stewart dons at galois.com
Fri Mar 13 13:08:57 EDT 2009

> Bryan O'Sullivan ha scritto:
>> [...]
>> text is not mature, and is based on the same modern fusion framework as 
>> uvector and vector. It uses unpinned arrays, but provides functions for 
>> dealing with foreign code. 
> What is the reason why you have decided to use unpinned arrays  
> (ByteArray#) instead of pinned arrays (Foreign.Ptr)?

They prevent heap fragmentation (and in general are faster).

-- Don

More information about the Haskell-Cafe mailing list