[Haskell-cafe] possible memory leak in uvector

Manlio Perillo manlio_perillo at libero.it
Tue Mar 3 05:10:48 EST 2009

Manlio Perillo ha scritto:
> [...]
>>> The other program, with a lot of array concatenations, still eats a 
>>> lot  of memory...
>> Concatenating arrays generally copies data. Which uses memory.
> Of course, but why the garbage collector does not "release" this 
> temporary used memory?
> Note that I'm using the -F1 flag with the RST.
> Maybe it is a problem with IntMap, when there are a lot of keys?

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.

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

Thanks  Manlio Perillo

More information about the Haskell-Cafe mailing list