
#9848: List.all does not fuse -------------------------------------+------------------------------------- Reporter: klapaucius | Owner: ekmett Type: bug | Status: new Priority: normal | Milestone: Component: Core Libraries | Version: 7.9 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: Type of failure: Runtime | Unknown/Multiple performance bug | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Revisions: -------------------------------------+------------------------------------- Comment (by nomeata):
Should I add a performance test?
Yes. Usually with list fusion you can create a test that allocates almost nothing if fusion kicks in, but allocates a lot of it does not. Alternatively, you can copy the code from http://hackage.haskell.org/package/list-fusion-probe-0.1.0.3/docs/src /Data-List-Fusion-Probe.html into the test case and wrap the argument to `all` with `fuseThis`. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/9848#comment:5 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler