[Haskell-cafe] possible memory leak in uvector 0.1.0.3

Don Stewart dons at galois.com
Mon Mar 2 20:14:34 EST 2009


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.
 
> The other program, with a lot of array concatenations, still eats a lot  
> of memory...

Concatenating arrays generally copies data. Which uses memory.


More information about the Haskell-Cafe mailing list