[Haskell-cafe] memory-efficient data type for Netflix data - UArray Int Int vs UArray Int Word8

Kenneth Hoste kenneth.hoste at ugent.be
Mon Feb 23 15:06:40 EST 2009

On Feb 23, 2009, at 19:57 , Don Stewart wrote:

> bos:
>> 2009/2/23 Kenneth Hoste <kenneth.hoste at ugent.be>
>>    Does anyone know why the Word8 version is not significantly  
>> better in terms
>>    of memory usage?
>> Yes, because there's a typo on line 413 of Data/Array/Vector/Prim/ 
>> BUArr.hs.
>> How's that for service? :-)
> UArray or UArr?

Well, I'm using UArray, but I'm willing to consider other suitable  
As long as they are memory efficient. :-)

The typical usage of a UArray will be getting all it's contents,
and converting it to a list to easily manipulate (filter, ...).

So, maybe another data type allows me to store the data in a limited  
amount of memory
(which is my main concern now)...



Kenneth Hoste
ELIS - Ghent University
email: kenneth.hoste at elis.ugent.be
blog: http://www.elis.ugent.be/~kehoste/blog
website: http://www.elis.ugent.be/~kehoste

More information about the Haskell-Cafe mailing list