Inlining always reduces the number of instructions executed (since at a minimum the call and return instructions are not executed), but it can (and often does), make the resulting code bigger.
内联总是减少指令执行的数量(这是由于最低限度的调用和返回指令没有被执行),但是它能(并经常)让结果代码变得很大。
Dynamic compilers, especially once method inlining takes place, have many more ways to determine that code is dead.
动态编译器(尤其是在进行方法内联之后)通过许多方法来判断死代码。
Inlining a very small accessor function will usually decrease code size while inlining a very large function can dramatically increase code size.
内联一个非常小成员访问函数会减少代码,而内联一个非常大的函数代码会戏剧性的增长。
应用推荐