Skip to content

Remove duplicated HMI by incremental clean-up in ModIfaceCache (#24116)

Ian-Woo Kim requested to merge wavewave/ghc:wavewave/fix-mod-iface-cache into master

old_hpt in the arguments of upsweep holds HomeModInfo of the previous compilation and therefore, when GHC reloads the new version of the modules, GHC unnecessarily has doubled memory footprint in the scope of upsweep. By putting that old home package table info into ModIfaceCache and making it updatable incrementally in recompilation, the memory usage is kept constant during and after reloads.

Merge request reports