Skip to content
Snippets Groups Projects
Forked from Glasgow Haskell Compiler / haddock
Source project has a limited visibility.
  • Alec Theriault's avatar
    40eb5aab
    Accumulate explicitly which modules to load for 'attachInstances' · 40eb5aab
    Alec Theriault authored and Ben Gamari's avatar Ben Gamari committed
    The old approach to fixing #469, while correct, consumes a lot of
    memory. We ended up with a HUGE 'GblRdrEnv' in 'ic_rn_gbl_env'. However,
    'getNameToInstancesIndex' takes that environment and compresses it down
    to a much smaller 'ModuleSet'.
    
    Now, we compute that 'ModuleSet' explicitly as we process modules. That
    way we can just tell 'getNameToInstancesIndex' what modules to load
    (instead of it trying to compute that information from the interactive
    context).
    
    (cherry picked from commit 5c7c596c)
    40eb5aab
    History
    Accumulate explicitly which modules to load for 'attachInstances'
    Alec Theriault authored and Ben Gamari's avatar Ben Gamari committed
    The old approach to fixing #469, while correct, consumes a lot of
    memory. We ended up with a HUGE 'GblRdrEnv' in 'ic_rn_gbl_env'. However,
    'getNameToInstancesIndex' takes that environment and compresses it down
    to a much smaller 'ModuleSet'.
    
    Now, we compute that 'ModuleSet' explicitly as we process modules. That
    way we can just tell 'getNameToInstancesIndex' what modules to load
    (instead of it trying to compute that information from the interactive
    context).
    
    (cherry picked from commit 5c7c596c)
Code owners
Assign users and groups as approvers for specific file changes. Learn more.