encyclopegia.org

Inline expansion

In computing, inline expansion, or inlining, is a manual or compiler optimization that replaces a function call site with the body of the called function. Inline expansion is similar to macro expansion, but occurs during compiling, without changing the source code (the text), while macro expansion occurs before compiling, and results in different text that is then processed by the compiler. Inlining is an important optimization, but has complex effects on performance. As a rule of thumb, some inlining will improve speed at very minor cost of space, but excess inlining will hurt speed, due to inlined code consuming too much of the instruction cache, and also cost significant space. A survey of the modest academic literature on inlining from the 1980s and 1990s is given in Peyton Jones & Marlow 1999.

In computing, inline expansion, or inlining, is a manual or compiler optimization that replaces a function call site with the body of the called function. Inline expansion is similar to macro expansion, but occurs during compiling, without changing the source code (the text), while macro expansion occurs before compiling, and results in different text that is then processed by the compiler. Inlining is an important optimization, but has complex effects on performance. As a rule of thumb, some inlining will improve speed at very minor cost of space, but excess inlining will hurt speed, due to inlined code consuming too much of the instruction cache, and also cost significant space. A survey of the modest academic literature on inlining from the 1980s and 1990s is given in Peyton Jones & Marlow 1999. ==Overview== Inline expansion is similar to macro expansion as the compiler places a new copy of the function in each place it is called. Inlined functions run a little faster than the normal functions as function-calling-overheads are saved, however, there is a memory penalty. If a function is inlined 10 times, there will be 10 copies of the function inserted into the code. Hence inlining is best for small functions that are called often. In C++ the member functions of a class, if defined within the class definition, are inlined by default (no need to use the inline reserved word (keyword)); otherwise, the keyword is needed. The compiler may ignore the programmer’s attempt to inline a function, mainly if it is particularly large. Inline expansion is used to eliminate the time overhead (excess time) when a function is called. It is typically used for functions that execute frequently. It also has a space benefit for very small functions, and is an enabling transformation for other optimizations. Without inline functions, the compiler decides which functions to inline. The programmer has little or no control over which functions are inlined and which are not. Giving this degree of control to the programmer allows for the use of application-specific knowledge in choosing which functions to inline. Ordinarily, when a function is invoked, control is transferred to its definition by a branch or call instruction. With inlining, control drops through directly to the code for the function, without a branch or call instruction. Compilers usually implement statements with inlining. Loop conditions and loop bodies need lazy evaluation. This property is fulfilled when the code to compute loop conditions and loop bodies is inlined. Performance considerations are another reason to inline statements. In the context of functional programming languages, inline expansion is usually followed by the beta-reduction transformation. A programmer might inline a function manually through copy-and-paste programming, as a one-time operation on the source code. However, other methods of controlling inlining (see below) are preferable, because they do not precipitate bugs arising when the programmer overlooks a (possibly modified) duplicated version of the original function body, while fixing a bug in the inlined function. ==Effect on performance== The direct effect of this optimization is to improve time performance (by eliminating call overhead), at the cost of worsening space usage (due to duplicating the function body). The code expansion due to duplicating the function body dominates, except for simple cases, and thus the direct effect of inline expansion is to improve time at the cost of space. However, the main benefit of inline expansion is to allow further optimizations and improved scheduling, due to increasing the size of the function body, as better optimization is possible on larger functions. The ultimate impact of inline expansion on speed is complex, due to multiple effects on performance of the memory system (mainly instruction cache), which dominates performance on modern processors: depending on the specific program and cache, inlining particular functions can increase or decrease performance. The impact of inlining varies by programming language and program, due to different degrees of abstraction. In lower-level imperative languages such as C and Fortran it is typically a 10–20% speed boost, with minor impact on code size, while in more abstract languages it can be significantly more important, due to the number of layers inlining removes, with an extreme example being Self, where one compiler saw improvement factors of 4 to 55 by inlining. The direct benefits of eliminating a function call are: It eliminates instructions needed for a function call, both in the calling function and in the callee: placing arguments on a stack or in registers, the function call itself, the function prologue, then at return the function epilogue, the return statement, and then getting the return value back, and removing arguments from stacks and restoring registers (if needed). Due to not needing registers to pass arguments, it reduces register spilling. It eliminates having to pass references and then dereference them, when using call by reference (or call by address, or call by sharing). The main benefit of inlining, however, is the further optimizations it allows. Optimizations that cross function boundaries can be done without requiring interprocedural optimization (IPO): once inlining has been performed, added intraprocedural optimizations ("global optimizations") become possible on the enlarged function body. For example: A constant passed as an argument can often be propagated to all instances of the matching parameter, or part of the function may be "hoisted out" of a loop (via loop-invariant code motion). Register allocation can be done across the larger function body. High-level optimizations, such as escape analysis and tail duplication, can be performed on a larger scope and be more effective, more so if the compiler implementing those optimizations relies on mainly intra-procedural analysis. These can be done without inlining, but require a significantly more complex compiler and linker (in case caller and callee are in separate compiling units). Conversely, in some cases a language specification may allow a program to make added assumptions about arguments to procedures that it can no longer make after the procedure is inlined, preventing some optimizations. Smarter compilers (such as Glasgow Haskell Compiler (GHC)) will track this, but naive inlining loses this information. A further benefit of inlining for the memory system is: Eliminating branches and keeping code that is executed close together in memory improves instruction cache performance by improving locality of reference (spatial locality and sequentiality of instructions). This is smaller than optimizations that specifically target sequentiality, but is significant. The direct cost of inlining is increased code size, due to duplicating the function body at each call site. However, it does not always do so, namely in case of very short functions, where the function body is smaller than the size of a function call (at the caller, including argument and return value handling), such as trivial accessor methods or mutator methods (getters and setters); or for a function that is only used in one place, in which case it is not duplicated. Thus inlining may be minimized or eliminated if optimizing for code size, as is often the case in embedded systems. Inlining also imposes a cost on performance, due to the code expansion (due to duplication) hurting instruction cache performance. This is most significant if, before expansion, the working set of the program (or a hot section of code) fit in one level of the memory hierarchy (e.g., L1 cache), but after expansion it no longer fits, resulting in frequent cache misses at that level. Due to the significant difference in performance at different levels of the hierarchy, this hurts performance considerably. At the highest level this can result in increased page faults, catastrophic performance degradation due to thrashing, or the program failing to run at all. This last is rare in common desktop and server applications, where code size is small relative to available memory, but can be an issue for resource-constrained environments such as embedded systems. One way to mitigate this problem is to split functions into a smaller hot inline path (fast path), and a larger cold non-inline path (slow path). Inlining hurting performance is a problem for mainly large functions that are used in many places, but the break-even point beyond which inlining reduces performance is difficult to determine and depends in general on precise load, so it can be subject to manual optimization or profile-guided optimization. This is a similar issue to other code expanding optimizations such as loop unrolling, which also reduces number of instructions processed, but can decrease performance due to poorer cache performance. The precise effect of inlining on cache performance is complex. For small cache sizes (much smaller than the working set before expansion), the increased sequentiality dominates, and inlining improves cache performance. For cache sizes close to the working set, where inlining expands the working set so it no longer fits in cache, this dominates and cache performance decreases. For cache sizes larger than the working set, inlining has negligible impact on cache performance. Further, changes in cache design, such as load forwarding, can offset the increase in cache misses. ==Compiler support== Compilers use a variety of mechanisms to decide which function calls should be inlined; these can include manual hints from programmers for specific functions, together with overall control via command-line options. Inlining is done automatically by many compilers in many languages, based on judgment of whether inlining is beneficial, while in other cases it can be manually specified via compiler directives, typically using a keyword or compiler directive called inline . Typically this only hints that inlining is desired, rather than requiring inlining, with the force of the hint varying by language and compiler. Typically, compiler developers keep the above performance issues in mind, and incorporate heuristics into their compilers that choose which functions to inline so as to improve performance, rather than worsening it, in most cases. int pred(int x) { if (x == 0) { return 0; } else { return x - 1; } } Before inlining: int func(int y) { return pred(y) + pred(0) + pred(y + 1); } After inlining: int func(int y) { int tmp; // (1) if (y == 0) { tmp = 0; } else { tmp = y - 1; } // (2) if (0 == 0) { tmp += 0; } else { tmp += 0 - 1; } // (3) if (y + 1 == 0) { tmp += 0; } else { tmp += (y + 1) - 1; } return tmp; } Note that this is only an example. In an actual C application, it would be preferable to use an inlining language feature such as parameterized macros or inline functions to tell the compiler to transform the code in this way. The next section lists ways to optimize this code. MOVE FROM=array1,TO=array2,INLINE=NO The tmp += 0 statements in the lines marked (2) and (3) do nothing. The compiler can remove them. The condition 0 == 0 is always true, so the compiler can replace the line marked (2) with the consequent, tmp += 0 (which does nothing). The compiler can rewrite the condition y+1 == 0 to y == -1 . The compiler can reduce the expression (y + 1) - 1 to y . The expressions y and y+1 cannot both equal zero. This lets the compiler eliminate one test. In statements such as if (y == 0) return y the value of y is known in the body, and can be inlined. The new function looks like: int func(int y) { if (y == 0) { return 0; } if (y == -1) { return -2; } return 2 * y - 1; } (declaim (inline dispatch)) (defun dispatch (x) (funcall (get (car x) 'dispatch) x)) The Haskell compiler GHC tries to inline functions or values that are small enough but inlining may be noted explicitly using a language pragma: key_function :: Int -> String -> (Bool, Double) {-# INLINE key_function #-} "Eliminating Virtual Function Calls in C++ Programs"; Gerald Aigner, Urs Hölzle "Reducing Indirect Function Call Overhead In C++ Programs"; Brad Calder, Dirk Grumwald ALTO - A Link-Time Optimizer for the DEC Alpha "Advanced techniques"; John R. Levine "Whole Program Optimization with Visual C++ .NET"; Brandon Bray

References

  1. See for example the Adaptive Optimization System Archived 2011-08-09 at the Wayback Machine in the Jikes RVM for Java. Wikipedia revision 1334572897, retrieved 2026-11-22 · retrieved 2026-11-21 · rev 1334572897
    Cite this reference

    MLA "See for example the Adaptive Optimization System Archived 2011-08-09 at the Wayback Machine in the Jikes RVM for Java. Wikipedia revision 1334572897, retrieved 2026-11-22." See for example the Adaptive Optimization System Archived 2011-08-09 at the Wayback Machine in the Jikes RVM for Java. 2026-11-21. http://jikesrvm.org/Adaptive+Optimization+System. Accessed 25 November 2026.

    Chicago "See for example the Adaptive Optimization System Archived 2011-08-09 at the Wayback Machine in the Jikes RVM for Java. Wikipedia revision 1334572897, retrieved 2026-11-22." See for example the Adaptive Optimization System Archived 2011-08-09 at the Wayback Machine in the Jikes RVM for Java. 2026-11-21. http://jikesrvm.org/Adaptive+Optimization+System.

    APA See for example the Adaptive Optimization System Archived 2011-08-09 at the Wayback Machine in the Jikes RVM for Java. (2026). See for example the Adaptive Optimization System Archived 2011-08-09 at the Wayback Machine in the Jikes RVM for Java. Wikipedia revision 1334572897, retrieved 2026-11-22. Retrieved November 25, 2026, from http://jikesrvm.org/Adaptive+Optimization+System

  2. [2] Description of the inliner used in the Graal JIT compiler for Java Wikipedia revision 1334572897, retrieved 2026-11-22 · retrieved 2026-11-21 · rev 1334572897
    Cite this reference

    MLA "[2] Description of the inliner used in the Graal JIT compiler for Java Wikipedia revision 1334572897, retrieved 2026-11-22." Description of the inliner used in the Graal JIT compiler for Java Wikipedia revision 1334572897, retrieved 2026-11-22. 2026-11-21. https://www.researchgate.net/publication/331408280_An_Optimization-Driven_Incremental_Inline_Substitution_Algorithm_for_Just-in-Time_Compilers. Accessed 25 November 2026.

    Chicago "[2] Description of the inliner used in the Graal JIT compiler for Java Wikipedia revision 1334572897, retrieved 2026-11-22." Description of the inliner used in the Graal JIT compiler for Java Wikipedia revision 1334572897, retrieved 2026-11-22. 2026-11-21. https://www.researchgate.net/publication/331408280_An_Optimization-Driven_Incremental_Inline_Substitution_Algorithm_for_Just-in-Time_Compilers.

    APA Description of the inliner used in the Graal JIT compiler for Java Wikipedia revision 1334572897, retrieved 2026-11-22. (2026). [2] Description of the inliner used in the Graal JIT compiler for Java Wikipedia revision 1334572897, retrieved 2026-11-22. Retrieved November 25, 2026, from https://www.researchgate.net/publication/331408280_An_Optimization-Driven_Incremental_Inline_Substitution_Algorithm_for_Just-in-Time_Compilers

  3. [3] Scheifler, An Analysis of Inline Substitution for a Structured Programming Language Wikipedia revision 1334572897, retrieved 2026-11-22 · retrieved 2026-11-21 · rev 1334572897
    Cite this reference

    MLA "[3] Scheifler, An Analysis of Inline Substitution for a Structured Programming Language Wikipedia revision 1334572897, retrieved 2026-11-22." Scheifler, An Analysis of Inline Substitution for a Structured Programming Language Wikipedia revision 1334572897, retri. 2026-11-21. https://dl.acm.org/citation.cfm?id=359830. Accessed 25 November 2026.

    Chicago "[3] Scheifler, An Analysis of Inline Substitution for a Structured Programming Language Wikipedia revision 1334572897, retrieved 2026-11-22." Scheifler, An Analysis of Inline Substitution for a Structured Programming Language Wikipedia revision 1334572897, retri. 2026-11-21. https://dl.acm.org/citation.cfm?id=359830.

    APA Scheifler, An Analysis of Inline Substitution for a Structured Programming Language Wikipedia revision 1334572897, retri. (2026). [3] Scheifler, An Analysis of Inline Substitution for a Structured Programming Language Wikipedia revision 1334572897, retrieved 2026-11-22. Retrieved November 25, 2026, from https://dl.acm.org/citation.cfm?id=359830

  4. [4] Matthew Arnold, Stephen Fink, Vivek Sarkar, and Peter F. Sweeney, A Comparative Study of Static and Profile-based Heuristics for Inlining Wikipedia revision 1334572897, retrieved 2026-11-22 · retrieved 2026-11-21 · rev 1334572897
    Cite this reference

    MLA "[4] Matthew Arnold, Stephen Fink, Vivek Sarkar, and Peter F. Sweeney, A Comparative Study of Static and Profile-based Heuristics for Inlining Wikipedia revision 1334572897, retrieved 2026-11-22." Matthew Arnold, Stephen Fink, Vivek Sarkar, and Peter F. 2026-11-21. https://dl.acm.org/citation.cfm?id=351416. Accessed 25 November 2026.

    Chicago "[4] Matthew Arnold, Stephen Fink, Vivek Sarkar, and Peter F. Sweeney, A Comparative Study of Static and Profile-based Heuristics for Inlining Wikipedia revision 1334572897, retrieved 2026-11-22." Matthew Arnold, Stephen Fink, Vivek Sarkar, and Peter F. 2026-11-21. https://dl.acm.org/citation.cfm?id=351416.

    APA Matthew Arnold, Stephen Fink, Vivek Sarkar, and Peter F. (2026). [4] Matthew Arnold, Stephen Fink, Vivek Sarkar, and Peter F. Sweeney, A Comparative Study of Static and Profile-based Heuristics for Inlining Wikipedia revision 1334572897, retrieved 2026-11-22. Retrieved November 25, 2026, from https://dl.acm.org/citation.cfm?id=351416

  5. Inlining Semantics for Subroutines which are Recursive " by Henry G. Baker Wikipedia revision 1334572897, retrieved 2026-11-22 · retrieved 2026-11-21 · rev 1334572897
    Cite this reference

    MLA "Inlining Semantics for Subroutines which are Recursive " by Henry G. Baker Wikipedia revision 1334572897, retrieved 2026-11-22." Inlining Semantics for Subroutines which are Recursive " by Henry G. 2026-11-21. https://web.archive.org/web/20041013180231/http://home.pipeline.com/~hbaker1/Inlines.html. Accessed 25 November 2026.

    Chicago "Inlining Semantics for Subroutines which are Recursive " by Henry G. Baker Wikipedia revision 1334572897, retrieved 2026-11-22." Inlining Semantics for Subroutines which are Recursive " by Henry G. 2026-11-21. https://web.archive.org/web/20041013180231/http://home.pipeline.com/~hbaker1/Inlines.html.

    APA Inlining Semantics for Subroutines which are Recursive " by Henry G. (2026). Inlining Semantics for Subroutines which are Recursive " by Henry G. Baker Wikipedia revision 1334572897, retrieved 2026-11-22. Retrieved November 25, 2026, from https://web.archive.org/web/20041013180231/http://home.pipeline.com/~hbaker1/Inlines.html

  6. Declaration INLINE , NOTINLINE at the Common Lisp HyperSpec Wikipedia revision 1334572897, retrieved 2026-11-22 · retrieved 2026-11-21 · rev 1334572897
    Cite this reference

    MLA "Declaration INLINE , NOTINLINE at the Common Lisp HyperSpec Wikipedia revision 1334572897, retrieved 2026-11-22." 2026-11-21. http://www.lispworks.com/documentation/HyperSpec/Body/d_inline.htm#inline. Accessed 25 November 2026.

    Chicago "Declaration INLINE , NOTINLINE at the Common Lisp HyperSpec Wikipedia revision 1334572897, retrieved 2026-11-22." 2026-11-21. http://www.lispworks.com/documentation/HyperSpec/Body/d_inline.htm#inline.

    APA encyclopegia.org. (2026). Declaration INLINE , NOTINLINE at the Common Lisp HyperSpec Wikipedia revision 1334572897, retrieved 2026-11-22. Retrieved November 25, 2026, from http://www.lispworks.com/documentation/HyperSpec/Body/d_inline.htm#inline

  7. 7.13.5.1. INLINE pragma Chapter 7. GHC Language Features Wikipedia revision 1334572897, retrieved 2026-11-22 · retrieved 2026-11-21 · rev 1334572897
    Cite this reference

    MLA "7.13.5.1. INLINE pragma Chapter 7. GHC Language Features Wikipedia revision 1334572897, retrieved 2026-11-22." 13. 2026-11-21. http://www.haskell.org/ghc/docs/7.0.4/html/users_guide/pragmas.html. Accessed 25 November 2026.

    Chicago "7.13.5.1. INLINE pragma Chapter 7. GHC Language Features Wikipedia revision 1334572897, retrieved 2026-11-22." 13. 2026-11-21. http://www.haskell.org/ghc/docs/7.0.4/html/users_guide/pragmas.html.

    APA 13. (2026). 7.13.5.1. INLINE pragma Chapter 7. GHC Language Features Wikipedia revision 1334572897, retrieved 2026-11-22. Retrieved November 25, 2026, from http://www.haskell.org/ghc/docs/7.0.4/html/users_guide/pragmas.html

  8. inline specifier - cppreference.com · retrieved 2026-01-09 · rev 1334572897
    Cite this reference

    MLA "inline specifier - cppreference.com." "inline specifier - cppreference. 2026-01-09. https://en.cppreference.com/w/cpp/language/inline. Accessed 25 November 2026.

    Chicago "inline specifier - cppreference.com." "inline specifier - cppreference. 2026-01-09. https://en.cppreference.com/w/cpp/language/inline.

    APA "inline specifier - cppreference. (2026). inline specifier - cppreference.com. Retrieved November 25, 2026, from https://en.cppreference.com/w/cpp/language/inline

  9. Inline functions · retrieved 2026-11-21 · rev 1334572897
    Cite this reference

    MLA "Inline functions." 2026-11-21. https://kotlinlang.org/docs/inline-functions.html. Accessed 25 November 2026.

    Chicago "Inline functions." 2026-11-21. https://kotlinlang.org/docs/inline-functions.html.

    APA encyclopegia.org. (2026). Inline functions. Retrieved November 25, 2026, from https://kotlinlang.org/docs/inline-functions.html

  10. Secrets of the Glasgow Haskell Compiler inliner · retrieved 2026-11-21 · rev 1334572897
    Cite this reference

    MLA "Secrets of the Glasgow Haskell Compiler inliner." Jones, Simon Peyton; Marlow, Simon (July 2002). 2026-11-21. https://www.cambridge.org/core/journals/journal-of-functional-programming/article/secrets-of-the-glasgow-haskell-compiler-inliner/8DD9A82FF4189A0093B7672193246E22. Accessed 25 November 2026.

    Chicago "Secrets of the Glasgow Haskell Compiler inliner." Jones, Simon Peyton; Marlow, Simon (July 2002). 2026-11-21. https://www.cambridge.org/core/journals/journal-of-functional-programming/article/secrets-of-the-glasgow-haskell-compiler-inliner/8DD9A82FF4189A0093B7672193246E22.

    APA Jones, Simon Peyton; Marlow, Simon (July 2002). (2026). Secrets of the Glasgow Haskell Compiler inliner. Retrieved November 25, 2026, from https://www.cambridge.org/core/journals/journal-of-functional-programming/article/secrets-of-the-glasgow-haskell-compiler-inliner/8DD9A82FF4189A0093B7672193246E22

  11. number of instructions · retrieved 2026-11-21 · rev 1334572897
    Cite this reference

    MLA "number of instructions." Space usage is "number of instructions", and is both runtime space usage and the binary file size. 2026-11-21. https://en.wikipedia.org/wiki/Binary_file. Accessed 25 November 2026.

    Chicago "number of instructions." Space usage is "number of instructions", and is both runtime space usage and the binary file size. 2026-11-21. https://en.wikipedia.org/wiki/Binary_file.

    APA Space usage is "number of instructions", and is both runtime space usage and the binary file size. (2026). number of instructions. Retrieved November 25, 2026, from https://en.wikipedia.org/wiki/Binary_file

  12. Code size actually shrinks for very short functions, where the call overhead is larger than the body of the function, or single-use functions, where no duplication occurs. Wikipedia revision 1334572897, retrieved 2026-11-22 · retrieved 2026-11-21 · rev 1334572897
    Cite this reference

    MLA "Code size actually shrinks for very short functions, where the call overhead is larger than the body of the function, or single-use functions, where no duplication occurs. Wikipedia revision 1334572897, retrieved 2026-11-22." Code size actually shrinks for very short functions, where the call overhead is larger than the body of the function, or. 2026-11-21. https://en.wikipedia.org/w/index.php?oldid=1334572897. Accessed 25 November 2026.

    Chicago "Code size actually shrinks for very short functions, where the call overhead is larger than the body of the function, or single-use functions, where no duplication occurs. Wikipedia revision 1334572897, retrieved 2026-11-22." Code size actually shrinks for very short functions, where the call overhead is larger than the body of the function, or. 2026-11-21. https://en.wikipedia.org/w/index.php?oldid=1334572897.

    APA Code size actually shrinks for very short functions, where the call overhead is larger than the body of the function, or. (2026). Code size actually shrinks for very short functions, where the call overhead is larger than the body of the function, or single-use functions, where no duplication occurs. Wikipedia revision 1334572897, retrieved 2026-11-22. Retrieved November 25, 2026, from https://en.wikipedia.org/w/index.php?oldid=1334572897

  13. a b Chen et al. 1993 . Wikipedia revision 1334572897, retrieved 2026-11-22 · retrieved 2026-11-21 · rev 1334572897
    Cite this reference

    MLA "a b Chen et al. 1993 . Wikipedia revision 1334572897, retrieved 2026-11-22." a b Chen et al. 2026-11-21. https://en.wikipedia.org/w/index.php?oldid=1334572897. Accessed 25 November 2026.

    Chicago "a b Chen et al. 1993 . Wikipedia revision 1334572897, retrieved 2026-11-22." a b Chen et al. 2026-11-21. https://en.wikipedia.org/w/index.php?oldid=1334572897.

    APA a b Chen et al. (2026). a b Chen et al. 1993 . Wikipedia revision 1334572897, retrieved 2026-11-22. Retrieved November 25, 2026, from https://en.wikipedia.org/w/index.php?oldid=1334572897

  14. Chen et al. 1993 , 3.4 Function inline expansion, p. 14. Wikipedia revision 1334572897, retrieved 2026-11-22 · retrieved 2026-11-21 · rev 1334572897
    Cite this reference

    MLA "Chen et al. 1993 , 3.4 Function inline expansion, p. 14. Wikipedia revision 1334572897, retrieved 2026-11-22." Chen et al. 2026-11-21. https://en.wikipedia.org/w/index.php?oldid=1334572897. Accessed 25 November 2026.

    Chicago "Chen et al. 1993 , 3.4 Function inline expansion, p. 14. Wikipedia revision 1334572897, retrieved 2026-11-22." Chen et al. 2026-11-21. https://en.wikipedia.org/w/index.php?oldid=1334572897.

    APA Chen et al. (2026). Chen et al. 1993 , 3.4 Function inline expansion, p. 14. Wikipedia revision 1334572897, retrieved 2026-11-22. Retrieved November 25, 2026, from https://en.wikipedia.org/w/index.php?oldid=1334572897

  15. Chen et al. 1993 , 3.4 Function inline expansion, p. 19–20. Wikipedia revision 1334572897, retrieved 2026-11-22 · retrieved 2026-11-21 · rev 1334572897
    Cite this reference

    MLA "Chen et al. 1993 , 3.4 Function inline expansion, p. 19–20. Wikipedia revision 1334572897, retrieved 2026-11-22." Chen et al. 2026-11-21. https://en.wikipedia.org/w/index.php?oldid=1334572897. Accessed 25 November 2026.

    Chicago "Chen et al. 1993 , 3.4 Function inline expansion, p. 19–20. Wikipedia revision 1334572897, retrieved 2026-11-22." Chen et al. 2026-11-21. https://en.wikipedia.org/w/index.php?oldid=1334572897.

    APA Chen et al. (2026). Chen et al. 1993 , 3.4 Function inline expansion, p. 19–20. Wikipedia revision 1334572897, retrieved 2026-11-22. Retrieved November 25, 2026, from https://en.wikipedia.org/w/index.php?oldid=1334572897

  16. Chen et al. 1993 , 3.4 Function inline expansion, p. 24–26. Wikipedia revision 1334572897, retrieved 2026-11-22 · retrieved 2026-11-21 · rev 1334572897
    Cite this reference

    MLA "Chen et al. 1993 , 3.4 Function inline expansion, p. 24–26. Wikipedia revision 1334572897, retrieved 2026-11-22." Chen et al. 2026-11-21. https://en.wikipedia.org/w/index.php?oldid=1334572897. Accessed 25 November 2026.

    Chicago "Chen et al. 1993 , 3.4 Function inline expansion, p. 24–26. Wikipedia revision 1334572897, retrieved 2026-11-22." Chen et al. 2026-11-21. https://en.wikipedia.org/w/index.php?oldid=1334572897.

    APA Chen et al. (2026). Chen et al. 1993 , 3.4 Function inline expansion, p. 24–26. Wikipedia revision 1334572897, retrieved 2026-11-22. Retrieved November 25, 2026, from https://en.wikipedia.org/w/index.php?oldid=1334572897

  17. Peyton Jones & Marlow 1999 , 4. Ensuring Termination, pp. 6–9. Wikipedia revision 1334572897, retrieved 2026-11-22 · retrieved 2026-11-21 · rev 1334572897
    Cite this reference

    MLA "Peyton Jones & Marlow 1999 , 4. Ensuring Termination, pp. 6–9. Wikipedia revision 1334572897, retrieved 2026-11-22." Peyton Jones & Marlow 1999 , 4. 2026-11-21. https://en.wikipedia.org/w/index.php?oldid=1334572897. Accessed 25 November 2026.

    Chicago "Peyton Jones & Marlow 1999 , 4. Ensuring Termination, pp. 6–9. Wikipedia revision 1334572897, retrieved 2026-11-22." Peyton Jones & Marlow 1999 , 4. 2026-11-21. https://en.wikipedia.org/w/index.php?oldid=1334572897.

    APA Peyton Jones & Marlow 1999 , 4. (2026). Peyton Jones & Marlow 1999 , 4. Ensuring Termination, pp. 6–9. Wikipedia revision 1334572897, retrieved 2026-11-22. Retrieved November 25, 2026, from https://en.wikipedia.org/w/index.php?oldid=1334572897

  18. a b Peyton Jones & Marlow 1999 , 8. Related work, p. 17. Wikipedia revision 1334572897, retrieved 2026-11-22 · retrieved 2026-11-21 · rev 1334572897
    Cite this reference

    MLA "a b Peyton Jones & Marlow 1999 , 8. Related work, p. 17. Wikipedia revision 1334572897, retrieved 2026-11-22." a b Peyton Jones & Marlow 1999 , 8. 2026-11-21. https://en.wikipedia.org/w/index.php?oldid=1334572897. Accessed 25 November 2026.

    Chicago "a b Peyton Jones & Marlow 1999 , 8. Related work, p. 17. Wikipedia revision 1334572897, retrieved 2026-11-22." a b Peyton Jones & Marlow 1999 , 8. 2026-11-21. https://en.wikipedia.org/w/index.php?oldid=1334572897.

    APA a b Peyton Jones & Marlow 1999 , 8. (2026). a b Peyton Jones & Marlow 1999 , 8. Related work, p. 17. Wikipedia revision 1334572897, retrieved 2026-11-22. Retrieved November 25, 2026, from https://en.wikipedia.org/w/index.php?oldid=1334572897

  19. a b c [1] Prokopec et al., An Optimization Driven Incremental Inline Substitution Algorithm for Just-In-Time Compilers, CGO'19 publication about the inliner used in the Graal compiler for the JVM Wikipedia revision 1334572897, retrieved 2026-11-22 · retrieved 2026-11-21 · rev 1334572897
    Cite this reference

    MLA "a b c [1] Prokopec et al., An Optimization Driven Incremental Inline Substitution Algorithm for Just-In-Time Compilers, CGO'19 publication about the inliner used in the Graal compiler for the JVM Wikipedia revision 1334572897, retrieved 2026-11-22." a b c [1] Prokopec et al. 2026-11-21. https://www.researchgate.net/publication/331408280_An_Optimization-Driven_Incremental_Inline_Substitution_Algorithm_for_Just-in-Time_Compilers. Accessed 25 November 2026.

    Chicago "a b c [1] Prokopec et al., An Optimization Driven Incremental Inline Substitution Algorithm for Just-In-Time Compilers, CGO'19 publication about the inliner used in the Graal compiler for the JVM Wikipedia revision 1334572897, retrieved 2026-11-22." a b c [1] Prokopec et al. 2026-11-21. https://www.researchgate.net/publication/331408280_An_Optimization-Driven_Incremental_Inline_Substitution_Algorithm_for_Just-in-Time_Compilers.

    APA a b c [1] Prokopec et al. (2026). a b c [1] Prokopec et al., An Optimization Driven Incremental Inline Substitution Algorithm for Just-In-Time Compilers, CGO'19 publication about the inliner used in the Graal compiler for the JVM Wikipedia revision 1334572897, retrieved 2026-11-22. Retrieved November 25, 2026, from https://www.researchgate.net/publication/331408280_An_Optimization-Driven_Incremental_Inline_Substitution_Algorithm_for_Just-in-Time_Compilers

  20. Code generation - The Rust Reference · retrieved 2025-04-30 · rev 1334572897
    Cite this reference

    MLA "Code generation - The Rust Reference." 2025-04-30. https://doc.rust-lang.org/nightly/reference/attributes/codegen.html?highlight=inline#r-attributes.codegen.inline. Accessed 25 November 2026.

    Chicago "Code generation - The Rust Reference." 2025-04-30. https://doc.rust-lang.org/nightly/reference/attributes/codegen.html?highlight=inline#r-attributes.codegen.inline.

    APA encyclopegia.org. (2025). Code generation - The Rust Reference. Retrieved November 25, 2026, from https://doc.rust-lang.org/nightly/reference/attributes/codegen.html?highlight=inline#r-attributes.codegen.inline

  21. When to #[inline] - Standard library developers Guide · retrieved 2025-04-30 · rev 1334572897
    Cite this reference

    MLA "When to #[inline] - Standard library developers Guide." 2025-04-30. https://std-dev-guide.rust-lang.org/policy/inline.html. Accessed 25 November 2026.

    Chicago "When to #[inline] - Standard library developers Guide." 2025-04-30. https://std-dev-guide.rust-lang.org/policy/inline.html.

    APA encyclopegia.org. (2025). When to #[inline] - Standard library developers Guide. Retrieved November 25, 2026, from https://std-dev-guide.rust-lang.org/policy/inline.html

  22. Unusual speed boost: size matters · retrieved 2026-11-21 · rev 1334572897
    Cite this reference

    MLA "Unusual speed boost: size matters." a b Benjamin Poulain (August 8, 2013). 2026-11-21. https://www.webkit.org/blog/2826/unusual-speed-boost-size-matters/. Accessed 25 November 2026.

    Chicago "Unusual speed boost: size matters." a b Benjamin Poulain (August 8, 2013). 2026-11-21. https://www.webkit.org/blog/2826/unusual-speed-boost-size-matters/.

    APA a b Benjamin Poulain (August 8, 2013). (2026). Unusual speed boost: size matters. Retrieved November 25, 2026, from https://www.webkit.org/blog/2826/unusual-speed-boost-size-matters/

  23. Secrets of the Glasgow Haskell Compiler inliner . · retrieved 2026-01-23 · rev 1334572897
    Cite this reference

    MLA "Secrets of the Glasgow Haskell Compiler inliner ." 2026-01-23. https://en.wikipedia.org/w/index.php?oldid=1334572897. Accessed 25 November 2026.

    Chicago "Secrets of the Glasgow Haskell Compiler inliner ." 2026-01-23. https://en.wikipedia.org/w/index.php?oldid=1334572897.

    APA encyclopegia.org. (2026). Secrets of the Glasgow Haskell Compiler inliner . Retrieved November 25, 2026, from https://en.wikipedia.org/w/index.php?oldid=1334572897

  24. [http://www.haskell.org/ghc/docs/7.0.4/html/users_guide/pragmas.html 7.13.5.1. INLINE pragma] Chapter 7. GHC Language Features . · retrieved 2026-01-23 · rev 1334572897
    Cite this reference

    MLA "[http://www.haskell.org/ghc/docs/7.0.4/html/users_guide/pragmas.html 7.13.5.1. INLINE pragma] Chapter 7. GHC Language Features ." http://www. 2026-01-23. https://en.wikipedia.org/w/index.php?oldid=1334572897. Accessed 25 November 2026.

    Chicago "[http://www.haskell.org/ghc/docs/7.0.4/html/users_guide/pragmas.html 7.13.5.1. INLINE pragma] Chapter 7. GHC Language Features ." http://www. 2026-01-23. https://en.wikipedia.org/w/index.php?oldid=1334572897.

    APA http://www. (2026). [http://www.haskell.org/ghc/docs/7.0.4/html/users_guide/pragmas.html 7.13.5.1. INLINE pragma] Chapter 7. GHC Language Features . Retrieved November 25, 2026, from https://en.wikipedia.org/w/index.php?oldid=1334572897

  25. inline specifier - cppreference.com . en.cppreference.com . retrieved 2026-01-10 · retrieved 2026-01-09 · rev 1334572897
    Cite this reference

    MLA "inline specifier - cppreference.com . en.cppreference.com . retrieved 2026-01-10." inline specifier - cppreference. 2026-01-09. https://en.wikipedia.org/w/index.php?oldid=1334572897. Accessed 25 November 2026.

    Chicago "inline specifier - cppreference.com . en.cppreference.com . retrieved 2026-01-10." inline specifier - cppreference. 2026-01-09. https://en.wikipedia.org/w/index.php?oldid=1334572897.

    APA inline specifier - cppreference. (2026). inline specifier - cppreference.com . en.cppreference.com . retrieved 2026-01-10. Retrieved November 25, 2026, from https://en.wikipedia.org/w/index.php?oldid=1334572897

  26. Inline functions . kotlinlang.org . 23 June 2025. · retrieved 2026-01-23 · rev 1334572897
    Cite this reference

    MLA "Inline functions . kotlinlang.org . 23 June 2025." Inline functions. 2026-01-23. https://en.wikipedia.org/w/index.php?oldid=1334572897. Accessed 25 November 2026.

    Chicago "Inline functions . kotlinlang.org . 23 June 2025." Inline functions. 2026-01-23. https://en.wikipedia.org/w/index.php?oldid=1334572897.

    APA Inline functions. (2026). Inline functions . kotlinlang.org . 23 June 2025. Retrieved November 25, 2026, from https://en.wikipedia.org/w/index.php?oldid=1334572897

  27. Code generation - The Rust Reference . · retrieved 2026-01-23 · rev 1334572897
    Cite this reference

    MLA "Code generation - The Rust Reference ." 2026-01-23. https://en.wikipedia.org/w/index.php?oldid=1334572897. Accessed 25 November 2026.

    Chicago "Code generation - The Rust Reference ." 2026-01-23. https://en.wikipedia.org/w/index.php?oldid=1334572897.

    APA encyclopegia.org. (2026). Code generation - The Rust Reference . Retrieved November 25, 2026, from https://en.wikipedia.org/w/index.php?oldid=1334572897

  28. When to #[inline] - Standard library developers Guide . std-dev-guide.rust-lang.org . retrieved 2025-05-01 · retrieved 2025-04-30 · rev 1334572897
    Cite this reference

    MLA "When to #[inline] - Standard library developers Guide . std-dev-guide.rust-lang.org . retrieved 2025-05-01." When to #[inline] - Standard library developers Guide. 2025-04-30. https://en.wikipedia.org/w/index.php?oldid=1334572897. Accessed 25 November 2026.

    Chicago "When to #[inline] - Standard library developers Guide . std-dev-guide.rust-lang.org . retrieved 2025-05-01." When to #[inline] - Standard library developers Guide. 2025-04-30. https://en.wikipedia.org/w/index.php?oldid=1334572897.

    APA When to #[inline] - Standard library developers Guide. (2025). When to #[inline] - Standard library developers Guide . std-dev-guide.rust-lang.org . retrieved 2025-05-01. Retrieved November 25, 2026, from https://en.wikipedia.org/w/index.php?oldid=1334572897

  29. These can be done without inlining, but require a significantly more complex compiler and linker (in case caller and callee are in separate compiling units). Conversely, in some cases a language speci . · retrieved 2026-01-23 · rev 1334572897
    Cite this reference

    MLA "These can be done without inlining, but require a significantly more complex compiler and linker (in case caller and callee are in separate compiling units). Conversely, in some cases a language speci ." These can be done without inlining, but require a significantly more complex compiler and linker (in case caller and cal. 2026-01-23. https://en.wikipedia.org/w/index.php?oldid=1334572897. Accessed 25 November 2026.

    Chicago "These can be done without inlining, but require a significantly more complex compiler and linker (in case caller and callee are in separate compiling units). Conversely, in some cases a language speci ." These can be done without inlining, but require a significantly more complex compiler and linker (in case caller and cal. 2026-01-23. https://en.wikipedia.org/w/index.php?oldid=1334572897.

    APA These can be done without inlining, but require a significantly more complex compiler and linker (in case caller and cal. (2026). These can be done without inlining, but require a significantly more complex compiler and linker (in case caller and callee are in separate compiling units). Conversely, in some cases a language speci . Retrieved November 25, 2026, from https://en.wikipedia.org/w/index.php?oldid=1334572897

  30. Inlining hurting performance is a problem for mainly large functions that are used in many places, but the break-even point beyond which inlining reduces performance is difficult to determine and depe . · retrieved 2026-01-23 · rev 1334572897
    Cite this reference

    MLA "Inlining hurting performance is a problem for mainly large functions that are used in many places, but the break-even point beyond which inlining reduces performance is difficult to determine and depe ." Inlining hurting performance is a problem for mainly large functions that are used in many places, but the break-even po. 2026-01-23. https://en.wikipedia.org/w/index.php?oldid=1334572897. Accessed 25 November 2026.

    Chicago "Inlining hurting performance is a problem for mainly large functions that are used in many places, but the break-even point beyond which inlining reduces performance is difficult to determine and depe ." Inlining hurting performance is a problem for mainly large functions that are used in many places, but the break-even po. 2026-01-23. https://en.wikipedia.org/w/index.php?oldid=1334572897.

    APA Inlining hurting performance is a problem for mainly large functions that are used in many places, but the break-even po. (2026). Inlining hurting performance is a problem for mainly large functions that are used in many places, but the break-even point beyond which inlining reduces performance is difficult to determine and depe . Retrieved November 25, 2026, from https://en.wikipedia.org/w/index.php?oldid=1334572897

  31. [https://www.researchgate.net/publication/331408280_An_Optimization-Driven_Incremental_Inline_Substitution_Algorithm_for_Just-in-Time_Compilers] Description of the inliner used in the Graal JIT compil . · retrieved 2026-01-23 · rev 1334572897
    Cite this reference

    MLA "[https://www.researchgate.net/publication/331408280_An_Optimization-Driven_Incremental_Inline_Substitution_Algorithm_for_Just-in-Time_Compilers] Description of the inliner used in the Graal JIT compil ." https://www. 2026-01-23. https://en.wikipedia.org/w/index.php?oldid=1334572897. Accessed 25 November 2026.

    Chicago "[https://www.researchgate.net/publication/331408280_An_Optimization-Driven_Incremental_Inline_Substitution_Algorithm_for_Just-in-Time_Compilers] Description of the inliner used in the Graal JIT compil ." https://www. 2026-01-23. https://en.wikipedia.org/w/index.php?oldid=1334572897.

    APA https://www. (2026). [https://www.researchgate.net/publication/331408280_An_Optimization-Driven_Incremental_Inline_Substitution_Algorithm_for_Just-in-Time_Compilers] Description of the inliner used in the Graal JIT compil . Retrieved November 25, 2026, from https://en.wikipedia.org/w/index.php?oldid=1334572897

  32. [https://dl.acm.org/citation.cfm?id=359830] Scheifler, An Analysis of Inline Substitution for a Structured Programming Language . · retrieved 2026-01-23 · rev 1334572897
    Cite this reference

    MLA "[https://dl.acm.org/citation.cfm?id=359830] Scheifler, An Analysis of Inline Substitution for a Structured Programming Language ." https://dl. 2026-01-23. https://en.wikipedia.org/w/index.php?oldid=1334572897. Accessed 25 November 2026.

    Chicago "[https://dl.acm.org/citation.cfm?id=359830] Scheifler, An Analysis of Inline Substitution for a Structured Programming Language ." https://dl. 2026-01-23. https://en.wikipedia.org/w/index.php?oldid=1334572897.

    APA https://dl. (2026). [https://dl.acm.org/citation.cfm?id=359830] Scheifler, An Analysis of Inline Substitution for a Structured Programming Language . Retrieved November 25, 2026, from https://en.wikipedia.org/w/index.php?oldid=1334572897

  33. [https://dl.acm.org/citation.cfm?id=351416] Matthew Arnold, Stephen Fink, Vivek Sarkar, and Peter F. Sweeney, A Comparative Study of Static and Profile-based Heuristics for Inlining . · retrieved 2026-01-23 · rev 1334572897
    Cite this reference

    MLA "[https://dl.acm.org/citation.cfm?id=351416] Matthew Arnold, Stephen Fink, Vivek Sarkar, and Peter F. Sweeney, A Comparative Study of Static and Profile-based Heuristics for Inlining ." https://dl. 2026-01-23. https://en.wikipedia.org/w/index.php?oldid=1334572897. Accessed 25 November 2026.

    Chicago "[https://dl.acm.org/citation.cfm?id=351416] Matthew Arnold, Stephen Fink, Vivek Sarkar, and Peter F. Sweeney, A Comparative Study of Static and Profile-based Heuristics for Inlining ." https://dl. 2026-01-23. https://en.wikipedia.org/w/index.php?oldid=1334572897.

    APA https://dl. (2026). [https://dl.acm.org/citation.cfm?id=351416] Matthew Arnold, Stephen Fink, Vivek Sarkar, and Peter F. Sweeney, A Comparative Study of Static and Profile-based Heuristics for Inlining . Retrieved November 25, 2026, from https://en.wikipedia.org/w/index.php?oldid=1334572897

  34. [https://www.researchgate.net/publication/331408280_An_Optimization-Driven_Incremental_Inline_Substitution_Algorithm_for_Just-in-Time_Compilers] Prokopec et al., An Optimization Driven Incremental Inl . · retrieved 2026-01-23 · rev 1334572897
    Cite this reference

    MLA "[https://www.researchgate.net/publication/331408280_An_Optimization-Driven_Incremental_Inline_Substitution_Algorithm_for_Just-in-Time_Compilers] Prokopec et al., An Optimization Driven Incremental Inl ." https://www. 2026-01-23. https://en.wikipedia.org/w/index.php?oldid=1334572897. Accessed 25 November 2026.

    Chicago "[https://www.researchgate.net/publication/331408280_An_Optimization-Driven_Incremental_Inline_Substitution_Algorithm_for_Just-in-Time_Compilers] Prokopec et al., An Optimization Driven Incremental Inl ." https://www. 2026-01-23. https://en.wikipedia.org/w/index.php?oldid=1334572897.

    APA https://www. (2026). [https://www.researchgate.net/publication/331408280_An_Optimization-Driven_Incremental_Inline_Substitution_Algorithm_for_Just-in-Time_Compilers] Prokopec et al., An Optimization Driven Incremental Inl . Retrieved November 25, 2026, from https://en.wikipedia.org/w/index.php?oldid=1334572897

  35. [https://web.archive.org/web/20041013180231/http://home.pipeline.com/~hbaker1/Inlines.html Inlining Semantics for Subroutines which are Recursive]" by Henry G. Baker . (archived copy) · retrieved 2026-01-23 · rev 1334572897
    Cite this reference

    MLA "[https://web.archive.org/web/20041013180231/http://home.pipeline.com/~hbaker1/Inlines.html Inlining Semantics for Subroutines which are Recursive]" by Henry G. Baker . (archived copy)." https://web. 2026-01-23. https://en.wikipedia.org/w/index.php?oldid=1334572897. Accessed 25 November 2026.

    Chicago "[https://web.archive.org/web/20041013180231/http://home.pipeline.com/~hbaker1/Inlines.html Inlining Semantics for Subroutines which are Recursive]" by Henry G. Baker . (archived copy)." https://web. 2026-01-23. https://en.wikipedia.org/w/index.php?oldid=1334572897.

    APA https://web. (2026). [https://web.archive.org/web/20041013180231/http://home.pipeline.com/~hbaker1/Inlines.html Inlining Semantics for Subroutines which are Recursive]" by Henry G. Baker . (archived copy). Retrieved November 25, 2026, from https://en.wikipedia.org/w/index.php?oldid=1334572897

  36. Other languages provide constructs for explicit hints, generally as compiler Directive (programming)|directives (pragmas). The language Ada (programming language)|Ada has a pragma for inline f . · retrieved 2026-01-23 · rev 1334572897
    Cite this reference

    MLA "Other languages provide constructs for explicit hints, generally as compiler Directive (programming)|directives (pragmas). The language Ada (programming language)|Ada has a pragma for inline f ." Other languages provide constructs for explicit hints, generally as compiler Directive (programming)|directives (pragmas. 2026-01-23. https://en.wikipedia.org/w/index.php?oldid=1334572897. Accessed 25 November 2026.

    Chicago "Other languages provide constructs for explicit hints, generally as compiler Directive (programming)|directives (pragmas). The language Ada (programming language)|Ada has a pragma for inline f ." Other languages provide constructs for explicit hints, generally as compiler Directive (programming)|directives (pragmas. 2026-01-23. https://en.wikipedia.org/w/index.php?oldid=1334572897.

    APA Other languages provide constructs for explicit hints, generally as compiler Directive (programming)|directives (pragmas. (2026). Other languages provide constructs for explicit hints, generally as compiler Directive (programming)|directives (pragmas). The language Ada (programming language)|Ada has a pragma for inline f . Retrieved November 25, 2026, from https://en.wikipedia.org/w/index.php?oldid=1334572897

Cite this article

MLA

"Inline expansion." encyclopegia.org, 2026, https://encyclopegia.org/wiki/inline-expansion. Accessed 25 November 2026.

Chicago

"Inline expansion." encyclopegia.org. Accessed November 25, 2026. https://encyclopegia.org/wiki/inline-expansion.

APA

encyclopegia.org. (2026). Inline expansion. Retrieved November 25, 2026, from https://encyclopegia.org/wiki/inline-expansion

Accessed November 25, 2026 · CC BY-SA 4.0 · citation page · JSON

Related articles

1961 NBA expansion draft

stub · references available

Canada men's national inline hockey team

stub · references available

Expansión

stub · references available

asymptotic expansion

stub · references available

1997 Major League Baseball expansion draft

stub · references available

Jacobi–Anger expansion

stub · references available

Transportation Expansion Project

stub · references available
CC BY-SA 4.0 · share-alike · https://en.wikipedia.org/w/index.php?oldid=1334572897 · 0.5 · snapshot enwiki-001334572897

Cite · JSON · Search

Related services and records

Services

  • Estate — measured countries, lanes and facts
  • Intel — live corroborated events
  • Legal — statutes, cases and citations
  • Encyclopedia — articles with inline sources
  • Space — launches, satellites and orbits
  • Search — federated search and reports
  • Pass — passport account and SSO
  • Corpora — read-only corpus origins
  • e01 — self-hosted corpora and tools

Text and metadata only; each target carries its own sources. Missing data is published as no-data, never estimated.