Inline strategy for MathWorks® written MATLAB® functions
Control inlining between MathWorks functions
Since R2020b
Description
App Configuration Pane: Speed
Configuration Objects: coder.MexCodeConfig
| coder.CodeConfig
| coder.EmbeddedCodeConfig
Inlining behavior at all call sites where a MathWorks function calls another MathWorks function.
Even if you select the 'Always'
or the 'Never'
option for a setting, in certain cases, the code generator might not strictly follow
that instruction. For example, if there is a conflict,
the coder.inline('always')
or
coder.inline('never')
directive placed inside a function body
overrides this option. For more information, see Control Inlining to Fine-Tune Performance and Readability of Generated Code.
Settings
Speed
This value is the default value.
Uses internal heuristics to determine whether to perform inlining at a call site. This setting usually leads to highly optimized code.
Always
Always performs inlining at a call site.
Never
Never inlines function calls. Results in maximum readability. This setting might significantly reduce the performance of the generated code.
Readability
Almost never inlines function calls, except for calls to very small functions. Preserves modularity of code without sacrificing too much speed, whenever possible. Results in highly readable code.
Programmatic Use
Property:
InlineBetweenMathWorksFunctions |
Values: 'Speed' |
'Always' | 'Readability' |
'Never' |
Default: 'Speed' |
Version History
Introduced in R2020b