Differences between current version and revision by previous author of InLining.
Other diffs: Previous Major Revision, Previous Revision, or view the Annotated Edit History
Newer page: | version 4 | Last edited on Friday, March 12, 2004 9:10:36 am | by StuartYeates | |
Older page: | version 2 | Last edited on Tuesday, March 9, 2004 2:29:07 pm | by JohnMcPherson | Revert |
@@ -1,3 +1,5 @@
-Copying all of a function
body into another function rather than just calling it. This may have several benefits (such as avoiding the function call
/return overhead, and constant evaluation of the inlined function).
+Copying all of a [Function]
body into another function rather than just calling it. This may have several benefits (such as avoiding the FunctionCall
/return overhead, and constant evaluation of the inlined function).
Disadvantages of having some code inlined in many places (instead of as a single function) can include a larger binary, and cache misses during execution.
+
+Inlining is one of the easiest global optimisations in procedural languages such as [C]/[C++] and [Java].