[GHC] #8763: forM_ [1..N] does not get fused (10 times slower than go function)
GHC
ghc-devs at haskell.org
Tue Apr 29 12:35:36 UTC 2014
#8763: forM_ [1..N] does not get fused (10 times slower than go function)
--------------------------------------------+------------------------------
Reporter: nh2 | Owner:
Type: bug | Status: new
Priority: normal | Milestone:
Component: Compiler | Version: 7.6.3
Resolution: | Keywords:
Operating System: Unknown/Multiple | Architecture:
Type of failure: Runtime performance bug | Unknown/Multiple
Test Case: | Difficulty: Unknown
Blocking: | Blocked By:
| Related Tickets:
--------------------------------------------+------------------------------
Comment (by daniel.is.fischer):
Replying to [comment:16 simonpj]:
> I've tried with 7.8.2. I get the same performance for `matmultForM_`
and `matMultLoop`.
Are you compiling with `-O`? You need `-O2` for a significant difference
to appear (with only `-O`, both versions are slow).
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/8763#comment:17>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list