Difference between revisions of "Performance/Functions"
Jump to navigation
Jump to search
m (+infobox) |
(+cat) |
||
(One intermediate revision by one other user not shown) | |||
Line 1: | Line 1: | ||
{{Performance infobox}} |
{{Performance infobox}} |
||
+ | [[Category:Performance|Functions]] |
||
== Force functions to be inlined == |
== Force functions to be inlined == |
||
Latest revision as of 11:28, 13 January 2007
Haskell Performance Resource
Constructs: Techniques: |
Force functions to be inlined
Haskell has an INLINE pragma that can be used to indicate to the compiler that you would like a function's definition to be inlined at each call site. (not all compilers respect the INLINE pragma; GHC does, any others?)
- GHC's documentation on the INLINE pragma