[commit: ghc] master: Optimise optCoercion. (#9233) (5e7406d)

git at git.haskell.org git at git.haskell.org
Wed Jul 16 18:21:05 UTC 2014


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

On branch  : master
Link       : http://ghc.haskell.org/trac/ghc/changeset/5e7406d9f5857e4ff30aed348f731d16dbd8e64c/ghc

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

commit 5e7406d9f5857e4ff30aed348f731d16dbd8e64c
Author: Richard Eisenberg <eir at cis.upenn.edu>
Date:   Wed Jul 16 12:25:24 2014 -0400

    Optimise optCoercion. (#9233)
    
    The old optCoercion (and helper functions) used coercionKind and
    coercionRole internally. This was terrible when these had to be
    called at *every* point in the coercion tree during the recursive
    descent. This is rewritten to avoid such calls.


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

5e7406d9f5857e4ff30aed348f731d16dbd8e64c
 compiler/types/OptCoercion.lhs | 281 +++++++++++++++++++++++++++--------------
 1 file changed, 187 insertions(+), 94 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 5e7406d9f5857e4ff30aed348f731d16dbd8e64c


More information about the ghc-commits mailing list