storing highly shared data structures
Simon Marlow
simonmar at microsoft.com
Tue Jan 10 04:26:30 EST 2006
Christian Maeder wrote:
> Bulat Ziganshin wrote:
>
>> CM> My old version is faster, because the version with makeStableName
>> does
>> CM> very much GC.
>>
>> CM> MUT time 27.28s ( 28.91s elapsed)
>> CM> GC time 133.98s (140.08s elapsed)
>>
>> try to add infamous "+RTS -A10m" switch ;)
>
>
> You saved my day, thank you Bulat!
>
> Without that flag:
>
> MUT time 24.30s ( 24.76s elapsed)
> GC time 131.25s (140.01s elapsed)
> EXIT time 0.00s ( 0.00s elapsed)
> Total time 155.55s (164.77s elapsed)
>
> And with it:
>
> MUT time 23.86s ( 24.86s elapsed)
> GC time 11.03s ( 11.68s elapsed)
> EXIT time 0.00s ( 0.00s elapsed)
> Total time 34.89s ( 36.54s elapsed)
The real problem seems to be that minor GCs are taking too long. Having
said that, you can usually reduce GC overhead with large -A or -H options.
Cheers,
Simon
More information about the Glasgow-haskell-users
mailing list