[GHC] #13213: Lifting thunks out of thunks to reduce their size.
GHC
ghc-devs at haskell.org
Tue Jan 31 16:48:46 UTC 2017
#13213: Lifting thunks out of thunks to reduce their size.
-------------------------------------+-------------------------------------
Reporter: nomeata | Owner:
Type: task | Status: new
Priority: low | Milestone:
Component: Compiler | Version: 8.0.1
Resolution: | Keywords:
Operating System: Unknown/Multiple | Architecture:
| Unknown/Multiple
Type of failure: None/Unknown | Test Case:
Blocked By: | Blocking:
Related Tickets: | Differential Rev(s):
Wiki Page: |
-------------------------------------+-------------------------------------
Comment (by rwbarton):
Copying the original example here for visibility, the issue (bug?) is that
the (polymorphic in `Num`) function `f` defined by
{{{#!hs
f a1 a2 a3 a4 a5 a6 a7 a8 a9 a10
= a1 + a2 + a3 + a4 + a5 + a6 + a7 + a8 + a9 + a10
}}}
has quadratic code size and allocations in the number of arguments (here
10).
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/13213#comment:1>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list