Compiler decision to inline function based on size (VS, C++)
<p>This <a href="https://msdn.microsoft.com/en-us/library/cx3b23a3(v=vs.140).aspx" rel="nofollow noreferrer">MSDN documentation </a> on inline functions states that the Visual Studio C++ compiler decides whether to inline the function or not:</p>

<pre><code>...the compiler does not inline a function ... if it is too large to inline.
</code></pre>

<p>But no information is given for what the metric "too large" is. Might be <code>number of lines</code> or <code>size of machine code</code> or some other metric. This is probably buried deep in the compiler code but some guidelines would be useful. Anybody have a good heuristic for how the VS compiler makes its decision?</p>