[commit: containers] master: Improve heap-allocation by adding explicit type signatures. (32d84ba)
Paolo Capriotti
p.capriotti at gmail.com
Thu Jul 19 21:12:23 CEST 2012
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 <fox at ucw.cz>
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
More information about the Cvs-libraries
mailing list