Enrico Weigelt, metux IT consult
2016-12-08 16:50:41 UTC
Hi folks,
we've got a lot of trivila getters that are heavily used within
their classes. As they're public and not final, the compiler can't
inline them (it must assume that they might be overwritten by derived
classes), which of course introduces a performance penalty.
Should we instead make them final or use the underlying fields
directly ?
--mtx
we've got a lot of trivila getters that are heavily used within
their classes. As they're public and not final, the compiler can't
inline them (it must assume that they might be overwritten by derived
classes), which of course introduces a performance penalty.
Should we instead make them final or use the underlying fields
directly ?
--mtx