[commit: ghc] wip/T13719: Faster checkFamInstConsistency (17d59b9)

git at git.haskell.org git at git.haskell.org
Wed May 24 09:30:42 UTC 2017


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

On branch  : wip/T13719
Link       : http://ghc.haskell.org/trac/ghc/changeset/17d59b9e979db9fe1b7ed6e03620fb4ea6045873/ghc

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

commit 17d59b9e979db9fe1b7ed6e03620fb4ea6045873
Author: Bartosz Nitka <niteria at gmail.com>
Date:   Fri May 19 08:08:01 2017 -0700

    Faster checkFamInstConsistency
    
    Summary:
    This implements the idea from
    https://ghc.haskell.org/trac/ghc/ticket/13092#comment:14.
    
    It's explained in Note [Checking family instance optimization]
    in more detail.
    
    This improves the test case T13719 tenfold and
    cuts down the compile time on `:load` in `ghci` on our
    internal code base by half.
    
    Test Plan: ./validate
    
    Reviewers: simonpj, simonmar, rwbarton, austin, bgamari
    
    Subscribers: thomie
    
    GHC Trac Issues: #13719
    
    Differential Revision: https://phabricator.haskell.org/D3603


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

17d59b9e979db9fe1b7ed6e03620fb4ea6045873
 compiler/typecheck/FamInst.hs       | 218 ++++++++++++++++++++++--------------
 compiler/typecheck/TcRnDriver.hs    |   2 +-
 testsuite/tests/perf/compiler/all.T |   3 +-
 3 files changed, 135 insertions(+), 88 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 17d59b9e979db9fe1b7ed6e03620fb4ea6045873


More information about the ghc-commits mailing list