[Haskell-cafe] uvector package appendU: memory leak?

Manlio Perillo manlio_perillo at libero.it
Sun Mar 29 16:04:37 EDT 2009


Don Stewart ha scritto:
> [...]
>> So the question is: why appending an array of only one element to an  
>> existing array causes memory problems?
> 
> 
> It must copy the entire array.
> 

Isn't it the same with snocU?

And, since the final result is the same, what happens to the temporary 
memory used for array copying?

I have executed the program with:
    +RTS -A128M -s -c -F1.1 -RTS

The memory seems to leak.

> -- Don
> 


Thanks  Manlio


More information about the Haskell-Cafe mailing list