There are a couple of reasons this could happen:
- The -h flag causes the GC to run more often, which will reclaim memory
more promptly
- -h causes more old-gen GCs to happen, which can avoid some cases where
generational GC has promoted something that hangs on to a lot of stuff
causing the
Lennart Augustsson writes:
> I'm running the 32-bit Windows version of ghc-7.8.3.
>
> Here are two runs:
>
> $ RunMu +RTS -A64M -h -Sstat.log -i1 -RTS -c Strat.App.Abacus.Main
> Compiling afresh Strat.App.Abacus.Main
> Compiled afresh Strat.App.Abacus.Main, 1302.84s
>
> $ RunMu +RTS -A64M -Sstat
I'm running the 32-bit Windows version of ghc-7.8.3.
Here are two runs:
$ RunMu +RTS -A64M -h -Sstat.log -i1 -RTS -c Strat.App.Abacus.Main
Compiling afresh Strat.App.Abacus.Main
Compiled afresh Strat.App.Abacus.Main, 1302.84s
$ RunMu +RTS -A64M -Sstat.log -i1 -RTS -c Strat.App.Abacus.Main
Compi