[commit: packages/containers] ghc-head: Force the components of returned pairs (cd8d45f)

git at git.haskell.org git at git.haskell.org
Fri Aug 30 13:33:40 CEST 2013


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

On branch  : ghc-head
Link       : http://git.haskell.org/?p=packages/containers.git;a=commit;h=cd8d45fb8c4132a5bf56b140a40d9f37f04cfd56

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

commit cd8d45fb8c4132a5bf56b140a40d9f37f04cfd56
Author: Johan Tibell <johan.tibell at gmail.com>
Date:   Fri Aug 24 16:56:12 2012 -0700

    Force the components of returned pairs
    
    Some functions, like partition, return a pair of values. Before this
    change these functions would do almost no work and return immediately,
    due to suspending most of the work in closures. This could cause space
    leaks.
    
    Closes #14.


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

cd8d45fb8c4132a5bf56b140a40d9f37f04cfd56
 Data/IntMap/Base.hs   |   92 +++++++++++++++++++++++++----------------
 Data/IntMap/Strict.hs |   98 +++++++++++++++++++++++--------------------
 Data/IntSet/Base.hs   |  110 +++++++++++++++++++++++++++++++------------------
 Data/Map/Base.hs      |   92 +++++++++++++++++++++++------------------
 Data/Map/Strict.hs    |   50 +++++++++++-----------
 Data/Set/Base.hs      |   36 ++++++++++------
 Data/StrictPair.hs    |   13 +++---
 benchmarks/Map.hs     |    1 +
 8 files changed, 290 insertions(+), 202 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 cd8d45fb8c4132a5bf56b140a40d9f37f04cfd56




More information about the ghc-commits mailing list