Besides the field access time tests, I did the same sort of timing test for method calls.
除了字段接入时间测试之外,我还进行了相同的方法调用时间测试。
Back in Part 2, I showed how reflection is many times slower than direct code for both field access and method calls.
在第2部分,我展示了无论是对于字段访问还是方法调用,反射都比直接代码慢很多倍。
These fall into three categories: method call transformations, field access transformations, and a new object transformation.
转换类型可分为三类:方法调用转换、字段访问转换和新对象转换。
应用推荐