[Haskell-cafe] help optimizing memory usage for a program
Manlio Perillo
manlio_perillo at libero.it
Mon Mar 2 19:22:26 EST 2009
Manlio Perillo ha scritto:
> Manlio Perillo ha scritto:
>> [...]
>> I have executed the program, using the same RTS flags as yours:
>>
>> real 6m13.523s
>> user 0m53.931s
>> sys 0m7.812s
>>
>> 815 MB usage
>>
>>
>> This is an huge improvement!
>>
Using UArray and empty + insert:
real 5m40.732s
user 0m58.620s
sys 0m7.264s
660 MB usage
Using singleton + union, memory usage is the same: 657 MB
So, now:
1) I don't understand why using uvector leaks memory.
I'm using the latest version found on Hackage.
2) Why your version of code, using singleton + union, consumes more
memory.
> [...]
Regards Manlio Perillo
More information about the Haskell-Cafe
mailing list