[Haskell-cafe] Re: GHC optimization issue
Joel Reymont
joelr1 at gmail.com
Thu Dec 22 17:17:05 EST 2005
How expensive is a GHC function call?
How do I make a decision whether to specialize or to inline?
On Dec 22, 2005, at 10:06 PM, Simon Peyton-Jones wrote:
> (Brief because I'm at home.)
>
> Use INLINE (alone) to include swap at its call sites. (That gives
> perfect per-call-site specialisation.)
>
> Use SPECIALISE (alone) to make a specialised copy of swap, which is
> then
> not duplicated at each call site, but instead is called.
--
http://wagerlabs.com/
More information about the Haskell-Cafe
mailing list