[Haskell-cafe] uvector package appendU: memory leak?
Don Stewart
dons at galois.com
Sun Mar 29 16:15:00 EDT 2009
manlio_perillo:
> 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.
Send me a test case.
-- Don
More information about the Haskell-Cafe
mailing list