From 726da09e76d0832b5aedd5b78624435695ac04e7 Mon Sep 17 00:00:00 2001 From: Matthew Pickering Date: Wed, 7 Apr 2021 10:57:06 +0100 Subject: Always generate ModDetails from ModIface 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 ------------------------- --- compiler/GHC/Unit/Module/Status.hs | 1 - 1 file changed, 1 deletion(-) (limited to 'compiler/GHC/Unit/Module') 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) -- cgit v1.2.1