[commit: ghc] master: Refactor LitString (7c665f9)

git at git.haskell.org git at git.haskell.org
Sun May 13 22:33:36 UTC 2018


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

On branch  : master
Link       : http://ghc.haskell.org/trac/ghc/changeset/7c665f9ce0980ee7c81a44c8f861686395637453/ghc

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

commit 7c665f9ce0980ee7c81a44c8f861686395637453
Author: Sylvain Henry <hsyl20 at gmail.com>
Date:   Sun May 13 11:36:28 2018 -0400

    Refactor LitString
    
    Refactor LitString so that the string length is computed at most once
    and then stored.
    
    Also remove strlen and memcmp wrappers (it seems like they were a
    workaround for a very old GCC when using -fvia-C).
    
    Bumps haddock submodule.
    
    Reviewers: bgamari, dfeuer, nickkuk
    
    Reviewed By: bgamari, nickkuk
    
    Subscribers: nickkuk, dfeuer, thomie, carter
    
    Differential Revision: https://phabricator.haskell.org/D4630


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

7c665f9ce0980ee7c81a44c8f861686395637453
 compiler/parser/cutils.c            | 17 ---------
 compiler/parser/cutils.h            |  5 ---
 compiler/utils/BufWrite.hs          | 33 +++++++++++++++--
 compiler/utils/FastString.hs        | 35 +++++++++---------
 compiler/utils/Pretty.hs            | 74 ++++++++++++++++++-------------------
 testsuite/tests/perf/compiler/all.T |  3 +-
 utils/haddock                       |  2 +-
 7 files changed, 86 insertions(+), 83 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 7c665f9ce0980ee7c81a44c8f861686395637453


More information about the ghc-commits mailing list