Accessing local field vs object field. Is doc wrong?
问题 The documentation seems to be wrong. Could someone tell me which is true? In Performance Myths section is: On devices without a JIT, caching field accesses is about 20% faster than repeatedly accesssing the field. With a JIT, field access costs about the same as local access. In Avoid Internal Getters/Setters section is: Without a JIT, direct field access is about 3x faster than invoking a trivial getter. With the JIT (where direct field access is as cheap as accessing a local), direct field