[GHC] #10992: Performance regression due to lack of inlining of `foldl` and `foldl'`.
GHC
ghc-devs at haskell.org
Thu Oct 22 10:38:23 UTC 2015
#10992: Performance regression due to lack of inlining of `foldl` and `foldl'`.
-------------------------------------+-------------------------------------
Reporter: aleator | Owner:
Type: bug | Status: new
Priority: normal | Milestone:
Component: Core Libraries | Version: 7.10.2
Resolution: | Keywords: performane
Operating System: Linux | Architecture: x86_64
Type of failure: Runtime | (amd64)
performance bug | Test Case:
Blocked By: | Blocking:
Related Tickets: | Differential Rev(s):
Wiki Page: |
-------------------------------------+-------------------------------------
Comment (by nomeata):
I should add that I’m inclined to suggest to change the definitions to
{{{
{-# INLINE foldl #-}
foldl k z0 = \xs -> ...
{-# INLINE foldl' #-}
foldl' k z0 = \xs -> ...
}}}
which should fix the problem at hand, but I’d like to have at least a
second opinion on this by someone.
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/10992#comment:3>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list