gpt4 book ai didi

java - iload_1、iload_2、iload_3 和 iload #index 字节码有什么区别?

转载 作者:搜寻专家 更新时间:2023-11-01 01:49:07 24 4
gpt4 key购买 nike

iload #index 与其他 3 字节代码有何不同。它们之间是否存在任何性能差异。

最佳答案

How iload #index differs from other 3 byte codes.

iload_1 _2 _3 使用一个字节的字节码。另一种形式使用 2。

Is there any performance difference between them.

只是间接的。大多数时候它没有什么区别,但是有一些性能调整指标是基于字节码字节数的。例如是否内联方法。稍长的方法可能意味着不执行某些优化。

例如即使不经常调用,内联方法的度量也是 35 个字节。如果代码使用 iload # 而不是 iload_1,这可能意味着它的长度略多于 35 个字节,而不是略少,并且没有被内联。

关于java - iload_1、iload_2、iload_3 和 iload #index 字节码有什么区别?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51042746/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com