Optimization replacing a function call with that function's source code
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 compilation, without changing the source code (the text), while macro expansion occurs prior to compilation, and results in different text that is then processed by the compiler.
Inlining is an important optimization, but has complicated effects on performance.[1] 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.[2]
^Chen et al. 1993.
^Peyton Jones & Marlow 1999, 8. Related work, p. 17.
inlineexpansion, or inlining, is a manual or compiler optimization that replaces a function call site with the body of the called function. Inline expansion...
include: Inline citation (here meaning "within a line of text") Inline engine Inline hockey Inline skating Inline assembler InlineexpansionInline function...
require) that the compiler substitute the body of the function inline by performing inlineexpansion, i.e. by inserting the function code at the address of each...
advantage of local data conditions to optimize away branches and to use inlineexpansion to decrease the cost of procedure calls. Consider a hypothetical banking...
thought inline hockey could support a professional inline hockey league. It started with eight franchised member clubs and, through a series of expansions, contractions...
be used for the low-pressure stage. Multiple-expansion engines typically had the cylinders arranged inline, but various other formations were used. In...
powerful optimization is partial-redundancy elimination (PRE). Inlineexpansion or macro expansion When some code invokes a procedure, it is possible to directly...
unsafe in an imperative language, thus increasing opportunities for inlineexpansion. Even if the involved copying that may seem implicit when dealing with...
the program. Compiler pragmas for directing optimizations such as inlineexpansion and specializing functions for particular types. Customizable rewrite...
procedural, and object-oriented) and do not also use significant inlineexpansion (inlining, via compiler optimizations) will, consequently, use a larger...
The National Basketball Association has undergone several rounds of expansion in the league's history, since it began play in 1946, to reach 30 teams...
may exploit local data conditions to optimize away branches and use inlineexpansion. A Java virtual machine like HotSpot can also deoptimize code formerly...
compiler to directly insert the method wherever it is called (see inlineexpansion). Because the method is loaded at runtime, compilers are unable to...
appropriate, as well as a URL, and a date when the site was accessed. Play: inline citations offer part, scene, and line numbers, the latter separated by periods:...
produce superior results. Typical enabling transformations include: Inlineexpansion: By inserting the body of a function in place of its call site, a large...
location was closed in 2011. The mall underwent cosmetic renovations and inlineexpansions in 2013 and added Dick's Sporting Goods in a newly constructed anchor...
The virial expansion is a model of thermodynamic equations of state. It expresses the pressure P of a gas in local equilibrium as a power series of the...
V-twin steam engine of their own design instead of the usual Curtiss OX-5 inline or radial aviation gasoline engine it would have normally used. It is a...
AGP Inline Memory Module (AIMM) also known as Graphics Performance Accelerator (GPA) is an expansion card that fits in the AGP slot of PC motherboards...
an expansion chamber or tuned pipe is a tuned exhaust system used to enhance its power output by improving its volumetric efficiency. Expansion chambers...
The Panama Canal expansion project (Spanish: ampliación del Canal de Panamá), also called the Third Set of Locks Project, doubled the capacity of the...
territories and building imperial structures over time. Most of the significant expansion occurred during the reign of the rāshidūn ("rightly-guided") caliphs from...
2.5L M54 inline 6-cylinder engine for the 2.5i model. The only model available from 2006 onwards for the U.S.-spec X3 was the 3.0L M54 inline 6-cylinder...