Closed parsonsmatt closed 2 months ago
Hi, thank you for this PR, but Haddock now lives full-time in the GHC repository! Read more at https://discourse.haskell.org/t/haddock-now-lives-in-the-ghc-repository/9576.
Let me know if you feel it is still needed, and I'll migrate it. :)
haddock
-rtsopts
tuning the gc options can get big improvements in performance when compiling with ghc. since
haddock
is doing a compilation, it stands to reason that more resources can similarly improve performance.the following are runs on the work codebase.
without any options
this run used no options aside from
+rts -s -rts
to dump output:time
output shows 15:30 runtime.without
rtsopts
, with-j20
my laptop has 20 cores, so running with
-j20
gives a decent boost:unfortunately, we run afoul of the garbage collector. productivity is down significantly. we're still considerably faster -
time
shows 9:41 runtime, a saving of 5:19, 37.5% improvement!with
rtsopts
this invocation used
+rts -s -n2m -a128m -qg -rts
. i did not tune this in anyway - just the first things i try when i'm playing with rts options for performance.time
output is 14:54 this time - a modest 36 seconds saved, only 3.9% improvement. still, free speed is free speed.with
rtsopts
, with-j20
let's add
-j20
to the program, so it runs with all my cores.time
reports 7:09. this is 2:32 improvement over the prior parallalel run, another 26% improvement.overall, we're looking at a 37.5% improvement, just on tuning the runtime parameters a bit.