[commit: ghc] wip/D1316: base: MRP-refactoring of AMP instances (db60084)
git at git.haskell.org
git at git.haskell.org
Sat Oct 10 13:09:52 UTC 2015
Repository : ssh://git@git.haskell.org/ghc
On branch : wip/D1316
Link : http://ghc.haskell.org/trac/ghc/changeset/db60084d738621b13835af2444bdf8c50013bf65/ghc
>---------------------------------------------------------------
commit db60084d738621b13835af2444bdf8c50013bf65
Author: Herbert Valerio Riedel <hvr at gnu.org>
Date: Thu Oct 8 16:34:17 2015 +0200
base: MRP-refactoring of AMP instances
Summary:
This refactors (>>)/(*>)/return/pure methods into normalform.
The redundant explicit `return` method definitions are dropped
altogether.
This results in measurable runtime improvements in nofib of up
to -20% runtime (geometric mean: -7%) in my measurements.
Reviewers: quchen, austin, alanz, bgamari
Subscribers: thomie
Differential Revision: https://phabricator.haskell.org/D1316
>---------------------------------------------------------------
db60084d738621b13835af2444bdf8c50013bf65
libraries/base/Control/Applicative.hs | 2 +-
libraries/base/Control/Arrow.hs | 1 -
libraries/base/Control/Monad/ST/Lazy/Imp.hs | 4 +---
libraries/base/Data/Complex.hs | 1 -
libraries/base/Data/Either.hs | 1 -
libraries/base/Data/Functor/Identity.hs | 1 -
libraries/base/Data/List/NonEmpty.hs | 1 -
libraries/base/Data/Monoid.hs | 3 ---
libraries/base/Data/Proxy.hs | 2 --
libraries/base/Data/Semigroup.hs | 21 ++++++++-------------
libraries/base/Data/Traversable.hs | 4 ++--
libraries/base/Data/Version.hs | 9 +++++----
libraries/base/GHC/Base.hs | 18 +++++++-----------
libraries/base/GHC/Conc/Sync.hs | 12 ++++++------
libraries/base/GHC/GHCi.hs | 3 +--
libraries/base/GHC/ST.hs | 11 +++++------
libraries/base/Text/ParserCombinators/ReadP.hs | 7 ++-----
libraries/base/Text/ParserCombinators/ReadPrec.hs | 3 +--
18 files changed, 39 insertions(+), 65 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 db60084d738621b13835af2444bdf8c50013bf65
More information about the ghc-commits
mailing list