Wolfgang Jeltsch pushed to branch wip/jeltsch/more-efficient-home-unit-imports-finding at Glasgow Haskell Compiler / GHC Commits: 482135cc by Wolfgang Jeltsch at 2026-05-12T21:16:35+03:00 Add changelog entry - - - - - 1 changed file: - + changelog.d/more-efficient-home-unit-imports-finding Changes: ===================================== changelog.d/more-efficient-home-unit-imports-finding ===================================== @@ -0,0 +1,15 @@ +section: compiler +synopsis: Introduce a cache of home module name providers +issues: #27055 +mrs: !15888 +description: { + This contribution optimizes the algorithm for finding out which home + unit provides the module that a certain import declaration refers + to. The previous approach has been to simply search all home units + in no particular order. This change introduces a cache that allows + for efficiently determining those complete home units that provide a + certain module name and changes the module-finding algorithm such + that it searches these units before the other home units. This leads + to significant performance improvements in situations where there + are lots of home units. +} View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/482135cc1cc94e9639984a2b0f3d7f60... -- View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/482135cc1cc94e9639984a2b0f3d7f60... You're receiving this email because of your account on gitlab.haskell.org.
participants (1)
-
Wolfgang Jeltsch (@jeltsch)