Wolfgang Jeltsch pushed to branch wip/jeltsch/more-efficient-home-unit-imports-finding at Glasgow Haskell Compiler / GHC
Commits:
-
fa3d2618
by Wolfgang Jeltsch at 2026-05-12T14:50:14+03:00
1 changed file:
Changes:
| ... | ... | @@ -293,6 +293,9 @@ rankedHomeUnitDeps :: HomeModuleNameProvidersMap |
| 293 | 293 | -> [UnitId]
|
| 294 | 294 | rankedHomeUnitDeps _ _ home_unit_deps | Set.null home_unit_deps
|
| 295 | 295 | = []
|
| 296 | +-- The special handling of the situation where the dependency set is empty does
|
|
| 297 | +-- not change the result, but it avoids triggering evaluation of the module
|
|
| 298 | +-- graph.
|
|
| 296 | 299 | rankedHomeUnitDeps home_module_name_providers_map mod_name home_unit_deps
|
| 297 | 300 | = Set.toList cached_deps ++ Set.toList uncached_deps
|
| 298 | 301 | where
|
| ... | ... | @@ -307,11 +310,6 @@ rankedHomeUnitDeps home_module_name_providers_map mod_name home_unit_deps |
| 307 | 310 | |
| 308 | 311 | uncached_deps :: Set UnitId
|
| 309 | 312 | uncached_deps = Set.difference home_unit_deps cached_providers
|
| 310 | -{-
|
|
| 311 | - The special handling of the situation where the dependency set is empty does
|
|
| 312 | - not change the result, but it avoids triggering evaluation of the module
|
|
| 313 | - graph.
|
|
| 314 | --}
|
|
| 315 | 313 | |
| 316 | 314 | -- | Locate a plugin module requested by the user, for a compiler
|
| 317 | 315 | -- plugin. This consults the same set of exposed packages as
|