[Haskell-cafe] possible memory leak in uvector 0.1.0.3
Manlio Perillo
manlio_perillo at libero.it
Mon Mar 2 21:00:07 EST 2009
Don Stewart ha scritto:
> manlio_perillo:
>> Hi.
>>
>> In the "help optimizing memory usage for a program" I discovered some
>> interesting things:
>>
>>
>> 2) UArr from uvector leaks memory.
>> I'm rather sure about this.
>
> Note it was just allocating more than was required, it wasn't "leaking"
> it in any sense (i.e. losing track of the memory).
>
>> Using this version memory usage is, finally, 643 MB!
>> (and execution if a bit faster, too).
>
> Yep, known bug, and closed last month.
>
Ok.
I should have checked the bug tracker.
>> 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?
Thanks Manlio Perillo
More information about the Haskell-Cafe
mailing list