[Git][ghc/ghc][wip/ghc-9.8] 9 commits: Memory usage fixes for Haddock

Ben Gamari (@bgamari) gitlab at gitlab.haskell.org
Tue Jun 20 19:53:14 UTC 2023



Ben Gamari pushed to branch wip/ghc-9.8 at Glasgow Haskell Compiler / GHC


Commits:
e89efb5f by Finley McIlwaine at 2023-06-20T15:39:18-04:00
Memory usage fixes for Haddock

- Do not include `mi_globals` in the `NoBackend` backend. It was only included
  for Haddock, but Haddock does not actually need it. This causes a 200MB
  reduction in max residency when generating haddocks on the Agda codebase
  (roughly 1GB to 800MB).

- Make haddock_{parser,renamer}_perf tests more accurate by forcing docs to
  be written to interface files using `-fwrite-interface`

Bumps haddock submodule.

Metric Decrease:
    haddock.base

- - - - -
1e08ce17 by Finley McIlwaine at 2023-06-20T15:48:50-04:00
Fix associated data family doc structure items

Associated data families were being given their own export DocStructureItems,
which resulted in them being documented separately from their classes in
haddocks. This commit fixes it.

- - - - -
c0abc47b by Sylvain Henry at 2023-06-20T15:48:54-04:00
JS: implement TH support

- Add ghc-interp.js bootstrap script for the JS interpreter
- Interactively link and execute iserv code from the ghci package
- Incrementally load and run JS code for splices into the running iserv

Co-authored-by: Luite Stegeman <stegeman at gmail.com>

- - - - -
5c794929 by Sylvain Henry at 2023-06-20T15:51:08-04:00
Don't use getKey

- - - - -
20e6c52e by Sylvain Henry at 2023-06-20T15:51:10-04:00
Stg: return imported FVs

This is used to determine what to link when using the interpreter.
For now it's only used by the JS interpreter but it could easily be used
by the native interpreter too (instead of extracting names from compiled BCOs).

- - - - -
b43968dc by Sylvain Henry at 2023-06-20T15:51:11-04:00
Fix some recompilation avoidance tests

- - - - -
614d5c57 by Sylvain Henry at 2023-06-20T15:51:12-04:00
TH_import_loop is now broken as expected

- - - - -
256c39dc by Sylvain Henry at 2023-06-20T15:51:13-04:00
JS: always recompile when TH is enabled (cf #23013)

- - - - -
e3388370 by Ben Gamari at 2023-06-20T15:51:28-04:00
configure: Bump version to 9.8

Bumps Haddock submodule

- - - - -


30 changed files:

- compiler/GHC.hs
- compiler/GHC/Builtin/Names.hs
- compiler/GHC/Driver/Backend.hs
- compiler/GHC/Driver/Main.hs
- compiler/GHC/Driver/Make.hs
- compiler/GHC/Driver/Pipeline.hs
- compiler/GHC/Hs/Doc.hs
- compiler/GHC/HsToCore/Docs.hs
- compiler/GHC/Iface/Recomp.hs
- compiler/GHC/Linker/Loader.hs
- compiler/GHC/Runtime/Context.hs
- compiler/GHC/Runtime/Interpreter.hs
- + compiler/GHC/Runtime/Interpreter/JS.hs
- + compiler/GHC/Runtime/Interpreter/Process.hs
- compiler/GHC/Runtime/Interpreter/Types.hs
- + compiler/GHC/Runtime/Utils.hs
- compiler/GHC/Stg/FVs.hs
- compiler/GHC/Stg/Pipeline.hs
- compiler/GHC/StgToJS/CodeGen.hs
- compiler/GHC/StgToJS/Deps.hs
- compiler/GHC/StgToJS/Linker/Linker.hs
- compiler/GHC/StgToJS/Linker/Types.hs
- compiler/GHC/StgToJS/Object.hs
- compiler/GHC/StgToJS/Types.hs
- compiler/GHC/Tc/Gen/Splice.hs
- compiler/GHC/Utils/Misc.hs
- compiler/ghc.cabal.in
- configure.ac
- + ghc-interp.js
- hadrian/src/Base.hs


The diff was not included because it is too large.


View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/compare/0c8d54e602acfc14e22a018e15680598850c3788...e3388370fa196e9637aa92160923713cbb007d91

-- 
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/compare/0c8d54e602acfc14e22a018e15680598850c3788...e3388370fa196e9637aa92160923713cbb007d91
You're receiving this email because of your account on gitlab.haskell.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/ghc-commits/attachments/20230620/f5a7220e/attachment.html>


More information about the ghc-commits mailing list