summaryrefslogtreecommitdiff
path: root/compiler/GHC/Unit/Module/Status.hs
diff options
context:
space:
mode:
authorMatthew Pickering <matthewtpickering@gmail.com>2021-04-07 10:57:06 +0100
committerMatthew Pickering <matthewtpickering@gmail.com>2021-04-13 13:33:15 -0400
commit93fcf9d7da2268bacc3b734648c0239825bc5571 (patch)
tree19feb9352955275a74b06287b071b99e6279f5a1 /compiler/GHC/Unit/Module/Status.hs
parentd1acda985696f2e828452e246686fb35294bb7fa (diff)
downloadhaskell-wip/init-mod-details.tar.gz
Always generate ModDetails from ModIfacewip/init-mod-details
This vastly reduces memory usage when compiling with `--make` mode, from about 900M when compiling Cabal to about 300M. As a matter of uniformity, it also ensures that reading from an interface performs the same as using the in-memory cache. We can also delete all the horrible knot-tying in updateIdInfos. Goes some way to fixing #13586 Accept new output of tests fixing some bugs along the way ------------------------- Metric Decrease: T12545 -------------------------
Diffstat (limited to 'compiler/GHC/Unit/Module/Status.hs')
-rw-r--r--compiler/GHC/Unit/Module/Status.hs1
1 files changed, 0 insertions, 1 deletions
diff --git a/compiler/GHC/Unit/Module/Status.hs b/compiler/GHC/Unit/Module/Status.hs
index 539158fdb1..52938154b4 100644
--- a/compiler/GHC/Unit/Module/Status.hs
+++ b/compiler/GHC/Unit/Module/Status.hs
@@ -28,7 +28,6 @@ data HscStatus
-- ^ Information for the code generator.
, hscs_mod_location :: !ModLocation
-- ^ Module info
- , hscs_mod_details :: !ModDetails
, hscs_partial_iface :: !PartialModIface
-- ^ Partial interface
, hscs_old_iface_hash :: !(Maybe Fingerprint)