5 ms·
Does this mean that simple accessors (or at least getters) effectively have no method call overhead? Also, the linked article's linked article mentions (in 200
by imd 17y ago
Does this mean that simple accessors (or at least getters) effectively have no method call overhead?
Also, the linked article's linked article mentions (in 2005) that Java 6 would have had this. What happened?
- slava_pestov 17y ago> Does this mean that simple accessors (or at least getters) effectively have no method call overhead? Method inlining has nothing to do with escape analysis (other than enabling it in more cases) and in any case getters and setters have had zero overhead since HotSpot was first introduced in Java 1.3.