[commit: containers] master: Improve heap-allocation by adding explicit type signatures. (32d84ba)

Paolo Capriotti <[email protected]>
Newsgroups gmane.comp.lang.haskell.cvs.libraries
Message-ID <[email protected]>
Repository : ssh://darcs.haskell.org//srv/darcs/packages/containers

On branch  : master

http://hackage.haskell.org/trac/ghc/changeset/32d84ba5eb82f34dbb8a8fabf07077d848cdb408

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

commit 32d84ba5eb82f34dbb8a8fabf07077d848cdb408
Author: Milan Straka <[email protected]>
Date:   Sun Apr 22 17:48:29 2012 +0200

    Improve heap-allocation by adding explicit type signatures.
    
    When a local 'go' function is using methods from Ord dictionary,
    this dictionary is heap-allocated at the entry to the outer function.
    If it is given explicit type mentioning the Ord class, the dictionary is
    passed on the stack, decreasing heap allocation.

 Data/Map/Base.hs   |   27 ++++++++++++++++++++++++---
 Data/Map/Strict.hs |   16 ++++++++++++++--
 Data/Set.hs        |   20 +++++++++++++++++---
 3 files changed, 55 insertions(+), 8 deletions(-)


Diff suppressed because of size. To see it, use:

    git show 32d84ba5eb82f34dbb8a8fabf07077d848cdb408
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.