[Haskell-cafe] possible memory leak in uvector 0.1.0.3

Bulat Ziganshin bulat.ziganshin at gmail.com
Tue Mar 3 05:50:48 EST 2009


Hello Manlio,

Tuesday, March 3, 2009, 1:10:48 PM, you wrote:

> It *is* a problem with IntMap.
> I have changed the program to not use any array concatenation, and it 
> still requires a lot of memory.

it may be problem with something else. in particular, check that
you don't have lazy thunks stored instead of values

> Does esist a data structure that is able to store something like 480189
> keys with efficient memory usage?

data.hashtable. at least, i can calculate its memory usage - it should
be less than 100 bytes per key even with collecting GC. plus memory
required for values

...but intmap should be the same. i still think that you have unforced
thunks stored in map

-- 
Best regards,
 Bulat                            mailto:Bulat.Ziganshin at gmail.com



More information about the Haskell-Cafe mailing list