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
_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to