inlined function
nounUK /ˈɪnlaɪnd ˈfʌŋkʃən/
US /ˈɪnlaɪnd ˈfʌŋkʃən/
A small helper that a computer copies right into the place where it is used.
The compiler turned the tiny getter into an inlined function to make the loop faster.
RELATED WORDS
OTHER MEANINGS
2. A function marked by the programmer to suggest the compiler insert its body at each call.
She declared the accessor as an inlined function in the header file.
3. A function whose body has been substituted at the call site by an optimizer.
Profiling showed the inlined function removed most of the call overhead.
4. A programming construct that avoids a separate function call by duplicating code.
The inlined function kept the hot path branch-free and fast.