
#9345: Data.List.inits is extremely slow -------------------------------------+------------------------------------- Reporter: dfeuer | Owner: Type: bug | Status: patch Priority: high | Milestone: 7.8.4 Component: | Version: 7.8.3 libraries/base | Keywords: Resolution: | Architecture: Unknown/Multiple Operating System: | Difficulty: Easy (less than 1 Unknown/Multiple | hour) Type of failure: Runtime | Blocked By: performance bug | Related Tickets: Test Case: | Blocking: | Differential Revisions: | -------------------------------------+------------------------------------- Comment (by nomeata): I’m really worryied seeing `INLINE` on such a rather large function. Doesn’t that mean that we will never use the compiled `inits` from the library but rather re-compile it at every use site? That does not seem to be good. (Disclaimer: Have not actually tried it.) I have run criterion on HEAD earlier, I might be able to set it up again. Do you have a ready-to-run benchmark that you would like me to run? -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/9345#comment:18 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler