ghc-mod/Language/Haskell/GhcMod
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
..
Caching Add some missing copyright boilerplate 2015-11-26 15:03:14 +01:00
Monad Fix instances for GHC<7.8 2016-01-04 01:23:46 +01:00
Boot.hs Optparse-applicative 2015-12-05 23:55:12 +03:00
Browse.hs Haddock documentation 2015-12-07 19:57:33 +03:00
CabalHelper.hs Remove some redundant calls to withCabal 2015-11-26 16:19:50 +01:00
Caching.hs Add some missing copyright boilerplate 2015-11-26 15:03:14 +01:00
CaseSplit.hs Sandwich new Monad layer GmOutT into transformer stack 2015-09-01 10:32:27 +02:00
Check.hs Fix GHC 7.10 warnings 2015-08-03 05:46:51 +02:00
Convert.hs Fix doctest 2015-09-02 04:00:30 +02:00
Cradle.hs some refactoring 2015-11-27 11:15:25 +01:00
CustomPackageDb.hs Add some missing copyright boilerplate 2015-11-26 15:03:14 +01:00
Debug.hs adding logging to findCradle methods 2015-11-27 11:15:25 +01:00
DebugLogger.hs Add some missing copyright boilerplate 2015-11-26 15:03:14 +01:00
Doc.hs Bring test suite up to date 2015-03-05 17:35:28 +01:00
DynFlags.hs Cleanup loadTarget logic 2015-12-16 00:24:14 +01:00
Error.hs Remove GMEWrongWorkingDirectory constructor 2016-01-04 21:44:49 +01:00
FileMapping.hs FileMapping library docs 2015-12-20 13:45:51 +03:00
FillSig.hs Sandwich new Monad layer GmOutT into transformer stack 2015-09-01 10:32:27 +02:00
Find.hs Optimize dumpsym maximum memory usage 2016-01-08 16:58:40 +01:00
Flag.hs Use GhcModT everywhere and remove the GhcMod alias 2014-07-15 01:03:56 +02:00
Gap.hs Fix 7.6 warning 2016-01-04 01:23:46 +01:00
GhcPkg.hs Move stack code into seperate module 2015-09-15 05:25:54 +02:00
HomeModuleGraph.hs Sandwich new Monad layer GmOutT into transformer stack 2015-09-01 10:32:27 +02:00
Info.hs Sandwich new Monad layer GmOutT into transformer stack 2015-09-01 10:32:27 +02:00
Internal.hs Cleanup loadTarget logic 2015-12-16 00:24:14 +01:00
Lang.hs Use GhcModT everywhere and remove the GhcMod alias 2014-07-15 01:03:56 +02:00
LightGhc.hs Fix over-qualified error messages (Fix #551) 2015-08-18 09:26:53 +02:00
Lint.hs Haddock documentation 2015-12-07 19:57:33 +03:00
Logger.hs Sandwich new Monad layer GmOutT into transformer stack 2015-09-01 10:32:27 +02:00
Logging.hs some refactoring 2015-11-27 11:15:25 +01:00
Modules.hs Haddock documentation 2015-12-07 19:57:33 +03:00
Monad.hs Reinstate cwd setup, this time with locking 2016-01-04 20:15:55 +01:00
Output.hs Fix ghc<7.10 2015-09-16 05:40:53 +02:00
PathsAndFiles.hs Fix missing autogen files when dist/setup-config already exists (Issue #621) 2015-09-23 12:02:03 +02:00
PkgDoc.hs Fix doc command not using right ghc-pkg exe 2015-09-02 07:19:11 +02:00
Pretty.hs Some pretty printing "improvements" (hopefully) 2015-08-18 04:54:10 +02:00
Read.hs Copy readMaybe/readEither from base >= 4.7 for backwards compatibility 2014-05-10 13:43:46 +02:00
SrcUtils.hs Fix GHC 7.10 warnings 2015-08-03 05:46:51 +02:00
Stack.hs Fix #603, stack path output can have missing values 2015-09-16 05:18:53 +02:00
Target.hs Cleanup loadTarget logic 2015-12-16 00:24:14 +01:00
Test.hs Don't need type errors here 2015-12-28 13:59:59 +01:00
Types.hs Remove GMEWrongWorkingDirectory constructor 2016-01-04 21:44:49 +01:00
Utils.hs Make tempdirs less annoying 2015-12-30 14:24:56 +01:00
World.hs Fix upper bounds on binary for ghc<7.10 2015-11-26 14:52:25 +01:00