[commit: ghc] master: Optimise common cases of GHC.setProgramDynFlags (3b5f786)

git at git.haskell.org git at git.haskell.org
Sat Apr 1 16:32:19 UTC 2017


Repository : ssh://git@git.haskell.org/ghc

On branch  : master
Link       : http://ghc.haskell.org/trac/ghc/changeset/3b5f786c7257298657fd34b3840d8cf6da968ef6/ghc

>---------------------------------------------------------------

commit 3b5f786c7257298657fd34b3840d8cf6da968ef6
Author: Simon Marlow <marlowsd at gmail.com>
Date:   Sat Apr 1 11:51:43 2017 -0400

    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


>---------------------------------------------------------------

3b5f786c7257298657fd34b3840d8cf6da968ef6
 compiler/main/DriverPipeline.hs | 10 ++++++-
 compiler/main/DynFlags.hs       | 64 +++++++++++++++++++++++++----------------
 compiler/main/GHC.hs            | 30 +++++++++++++++----
 compiler/main/Packages.hs       | 24 +++++++++++++---
 ghc/GHCi/UI.hs                  |  7 -----
 5 files changed, 94 insertions(+), 41 deletions(-)

Diff suppressed because of size. To see it, use:

    git diff-tree --root --patch-with-stat --no-color --find-copies-harder --ignore-space-at-eol --cc 3b5f786c7257298657fd34b3840d8cf6da968ef6


More information about the ghc-commits mailing list