
22 Dec
2005
22 Dec
'05
10:17 p.m.
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.