[commit: containers] master: Improve list fusion. (0c5e71c)
Paolo Capriotti
p.capriotti at gmail.com
Tue May 8 00:55:12 CEST 2012
Repository : ssh://darcs.haskell.org//srv/darcs/packages/containers
On branch : master
http://hackage.haskell.org/trac/ghc/changeset/0c5e71cd7d0a76d09dcd6ba3d95c468d70d6d6a9
>---------------------------------------------------------------
commit 0c5e71cd7d0a76d09dcd6ba3d95c468d70d6d6a9
Author: Milan Straka <fox at ucw.cz>
Date: Sun Mar 4 16:29:42 2012 +0100
Improve list fusion.
* Allow fusable methods to be converted back to the original call when
no fusion happens. For that, foldlFB and foldrFB are used, inspired by
mapFB from Prelude.
* Remove RULES for aliases like toList, assocs, elems, just INLINE them.
Data/IntMap/Base.hs | 39 ++++++++++++++++++++++++++++++++-------
Data/IntSet.hs | 31 ++++++++++++++++++++++++++-----
Data/Map/Base.hs | 39 ++++++++++++++++++++++++++++++++-------
Data/Set.hs | 31 ++++++++++++++++++++++++++-----
4 files changed, 116 insertions(+), 24 deletions(-)
Diff suppressed because of size. To see it, use:
git show 0c5e71cd7d0a76d09dcd6ba3d95c468d70d6d6a9
More information about the Cvs-libraries
mailing list