Open zacwood9 opened 3 years ago
The flag have been changed very recently. Was the performance better in previous versions?
It was better but I would still have issues occasionally. The latest version almost never finishes compiling though so I think the flags caused a regression. I believe the latest flags give GHC only a 2MB
heap? I could imagine that would slow things down a lot since it is so memory constrained, especially when compiling a file like Generated.Types
So I've been having issues with the Dev Server recently where the build would get stuck on
build/Generated/Types.hs
, whereas if I load the app usingmake ghci
everything would compile nice and fast.Here are the GHCi args, found in
startGHCI
inexe/IHP/IDE/DevServer.hs
I have no idea what the performance implications of the RTS flags are, but I tried removing them, recompiled IHP, and the builds started to pass again.
Is there a reason to have these specific RTS flags in the dev server? We shouldn't really need to tune for performance in dev and if I remember correctly the nonmoving GC still had some bugs.
Possibly related to #1051?