ghc-mod/Language/Haskell
Daniel Gröber 89b1ac2d1e Optimize dumpsym maximum memory usage
This took ages to track down. Turns out GHC keeps references to all
loaded ModIfaces in the PackageInterfaceTable in ExternalPackageState
for caching. ExternalPackageState is in an IORef in HscEnv so
overwriting that with a copy from right after init improves things a
bit. Next I use unsafeInterleaveIO to load the ModIfaces as we serialize
the symbol table rather than before thus reducing the amount of memory
needed even more.
2016-01-08 16:58:40 +01:00
..
GhcMod Optimize dumpsym maximum memory usage 2016-01-08 16:58:40 +01:00
GhcMod.hs Add 'test' command for running QuickCheck props 2015-12-28 13:57:24 +01:00