Optimise common cases of GHC.setProgramDynFlags

Authored by simonmar on Apr 1 2017, 10:51 AM.

Description

Optimise common cases of GHC.setProgramDynFlags

  • If the package flags haven't changed, don't do initPackages (which might take multiple seconds in extreme cases)
  • Provide a way to change the log_action without invalidating the summary cache.

Test Plan: validate

Reviewers: niteria, bgamari, austin, erikd, ezyang

Reviewed By: bgamari

Subscribers: mpickering, rwbarton, thomie

Differential Revision: https://phabricator.haskell.org/D3392

(cherry picked from commit f7cc1fdebd6aa8b5cb0498ae245a5e8cf3e38f6f)

Details

Committed
bgamariApr 1 2017, 10:57 AM
Pushed
bgamariApr 10 2017, 6:53 PM
Reviewer
bgamari
Differential Revision
D3392: Optimise common cases of GHC.setProgramDynFlags
Parents
rGHCDIFF24910e1940f5: Document the perplexing reversed nature of extraPkgConfs and friends.
Branches
Unknown
Tags
Unknown