
#12754: Adding an explicit export list halves compilation time. -------------------------------------+------------------------------------- Reporter: mpickering | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 8.0.1 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: Type of failure: Compile-time | Unknown/Multiple performance bug | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by bgamari): simonpj, did you mean to use `foldr` in `avail_env`? As far as I know it's better to use `foldl'` in cases like these where the result can't be forced "incrementally". In the case of `foldr` you will first build up a chain of `add` applications on the stack before ending up with the final `NameEnv AvailInfo`. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/12754#comment:8 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler