#4184: Squirrelly inliner behaviour leads to 80x slowdown
---------------------------------+------------------------------------------
Reporter: bos | Owner:
Type: bug | Status: new
Priority: normal | Component: Compiler
Version: 6.12.1 | Keywords:
Os: Unknown/Multiple | Testcase:
Architecture: Unknown/Multiple | Failure: Runtime performance bug
---------------------------------+------------------------------------------
Comment(by bos):
Alas, my claimed workaround works in my little toy application, but not in
a library.
In my statistics library, there's a {{{resample}}} function with the
following signature:
{{{resample :: (PrimMonad m) => Gen (PrimState m) -> [Estimator] -> Int ->
Sample -> m [Resample]}}}
It calls the {{{uniform}}} function detailed in the examples above, and
thus triggers the slowdown. It doesn't seem to matter whether or not I
inline the {{{resample}}} function, I still get my 80x slowdown :-(
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/4184#comment:3>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs