[GHC] #14948: A program which benefits from a late specialisation pass
GHC
ghc-devs at haskell.org
Tue Mar 20 15:37:33 UTC 2018
#14948: A program which benefits from a late specialisation pass
-------------------------------------+-------------------------------------
Reporter: mpickering | Owner: (none)
Type: bug | Status: new
Priority: normal | Milestone:
Component: Compiler | Version: 8.2.2
Keywords: | Operating System: Unknown/Multiple
Architecture: | Type of failure: None/Unknown
Unknown/Multiple |
Test Case: | Blocked By:
Blocking: | Related Tickets:
Differential Rev(s): | Wiki Page:
-------------------------------------+-------------------------------------
In this repo there is a small program which performs much better with a
late specialisation pass. There is a plugin which implements this pass.
Instructions about how to build the repo are in the README.
https://github.com/mpickering/legendary-train
Without plugin
{{{
time benchmarks
()
real 0m0.112s
}}}
With plugin (comparable to hand-written code)
{{{
time benchmarks
()
real 0m0.049s
}}}
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/14948>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list