阅读背景:

我应该何时(也不应该)使用Scala的@inline注释?

来源:互联网 

I believe I understand the basics of inline functions: instead of a function call resulting in parameters being placed on the stack and an invoke operation occurring, the definition of the function is copied at compile time to where the invocation was made, saving the invocation overhead at runtime.I believe I understand the basics of inline fun




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: