[Haskell-cafe] possible memory leak in uvector 0.1.0.3

Claus Reinke claus.reinke at talk21.com
Tue Mar 3 08:23:01 EST 2009


>> At first guess it sounds like you're holding onto too much, if not the
>> whole stream perhaps bits within each chunk. 
> 
> It is possible.
> 
> I split the string in lines, then map some functions on each line to 
> parse the data, and finally calling toU, for converting to an UArr.

Just to make sure (code fragments or, better, reduced examples
would make it easier to see what the discussion is about): are you 
forcing the UArr to be constructed before putting it into the Map?

Claus



More information about the Haskell-Cafe mailing list