[commit: containers] master: Remove type of local 'go' function in query methods of Set and Map. (556b80c)
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/556b80c6f7b457393428f42700405d04071491de >--------------------------------------------------------------- commit 556b80c6f7b457393428f42700405d04071491de Author: Milan Straka <[email protected]> Date: Sat Apr 28 16:51:13 2012 +0200 Remove type of local 'go' function in query methods of Set and Map. The resulting implementations are a bit faster, and there seems to be no increased heap-allocation. I will confirm this by examining GHC memory allocation. Data/Map/Base.hs | 35 ++++------------------------------- Data/Set/Base.hs | 26 ++++---------------------- 2 files changed, 8 insertions(+), 53 deletions(-) Diff suppressed because of size. To see it, use: git show 556b80c6f7b457393428f42700405d04071491de