Memory usage fixes
- Refactor `ifaceDeclMap` to drastically reduce memory footprint. We no longer store all declarations associated with a given name, since we only cared to determine if the only declaration associated with a name was a value declaration. Change the `DeclMap` type to better reflect this. - Drop pre-renaming export items after the renaming step. Since the Hoogle backend used the pre-renamed export items, this isn't trivial. We now generate Hoogle output for exported declarations during the renaming step (if Hoogle output /should/ be generated), and store that with the renamed export item. - Slightly refactor Hoogle backend to handle the above change and allow for early generation of Hoogle output. - Remove the `ifaceRnDocMap` and `ifaceRnArgMap` fields of the `Interface` type, as they were never used. - Remove some unnecessary strictness - Remove a lot of dead code from `Syb` module
parent
d39922c0
No related branches found
No related tags found
Showing
- haddock-api/src/Haddock.hs 10 additions, 6 deletionshaddock-api/src/Haddock.hs
- haddock-api/src/Haddock/Backends/Hoogle.hs 43 additions, 24 deletionshaddock-api/src/Haddock/Backends/Hoogle.hs
- haddock-api/src/Haddock/Backends/LaTeX.hs 29 additions, 14 deletionshaddock-api/src/Haddock/Backends/LaTeX.hs
- haddock-api/src/Haddock/Backends/Xhtml.hs 40 additions, 11 deletionshaddock-api/src/Haddock/Backends/Xhtml.hs
- haddock-api/src/Haddock/Convert.hs 6 additions, 2 deletionshaddock-api/src/Haddock/Convert.hs
- haddock-api/src/Haddock/Interface.hs 33 additions, 37 deletionshaddock-api/src/Haddock/Interface.hs
- haddock-api/src/Haddock/Interface/AttachInstances.hs 20 additions, 11 deletionshaddock-api/src/Haddock/Interface/AttachInstances.hs
- haddock-api/src/Haddock/Interface/Create.hs 66 additions, 66 deletionshaddock-api/src/Haddock/Interface/Create.hs
- haddock-api/src/Haddock/Interface/LexParseRn.hs 11 additions, 13 deletionshaddock-api/src/Haddock/Interface/LexParseRn.hs
- haddock-api/src/Haddock/Interface/Rename.hs 52 additions, 12 deletionshaddock-api/src/Haddock/Interface/Rename.hs
- haddock-api/src/Haddock/Syb.hs 5 additions, 45 deletionshaddock-api/src/Haddock/Syb.hs
- haddock-api/src/Haddock/Types.hs 91 additions, 37 deletionshaddock-api/src/Haddock/Types.hs
Loading
Please register or sign in to comment