[commit: ghc] wip/faster-stats: Speed up core size and core stats (760dde9)

git at git.haskell.org git at git.haskell.org
Thu Jul 6 02:23:24 UTC 2017


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

On branch  : wip/faster-stats
Link       : http://ghc.haskell.org/trac/ghc/changeset/760dde942165d1567c6a2ee0a9e7d6891dfef15d/ghc

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

commit 760dde942165d1567c6a2ee0a9e7d6891dfef15d
Author: David Feuer <David.Feuer at gmail.com>
Date:   Wed Jul 5 22:22:54 2017 -0400

    Speed up core size and core stats
    
    Summary:
    When calculating core size and core stats, we previously
    calculated sizes/stats for sub-parts and then added them.
    It should be faster to thread an accumulator through.
    
    Reviewers: austin, bgamari
    
    Subscribers: rwbarton, thomie
    
    Differential Revision: https://phabricator.haskell.org/D3483


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

760dde942165d1567c6a2ee0a9e7d6891dfef15d
 compiler/coreSyn/CoreStats.hs | 77 ++++++++++++++++++++++++------------------
 compiler/types/TyCoRep.hs     | 78 ++++++++++++++++++++++++++-----------------
 2 files changed, 91 insertions(+), 64 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 760dde942165d1567c6a2ee0a9e7d6891dfef15d


More information about the ghc-commits mailing list