[GHC] #8099: Alternate syntax for indicating when a function is "fully applied" for purposes of inlining
GHC
ghc-devs at haskell.org
Thu Nov 7 18:48:16 UTC 2013
#8099: Alternate syntax for indicating when a function is "fully applied" for
purposes of inlining
-------------------------------------+------------------------------------
Reporter: jberryman | Owner:
Type: feature request | Status: new
Priority: normal | Milestone:
Component: Compiler | Version: 7.6.3
Resolution: | Keywords:
Operating System: Unknown/Multiple | Architecture: Unknown/Multiple
Type of failure: None/Unknown | Difficulty: Unknown
Test Case: | Blocked By:
Blocking: | Related Tickets:
-------------------------------------+------------------------------------
Comment (by carter):
simon, you're forgetting version 5! :
{{{
f = \ x y -> ( U.zipWith (+) x y)
}}}
I think thats the "maximally inlining" way to define that procedure. Its
also how i'm writing quite a bit of my performance sensitive code, because
a) this way inlining is independent of using it point free or not
b) it saturates all the functions in the body of the procedure
c) the way the end user uses the code won't impact when / if inlining
happens :)
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/8099#comment:17>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list