Re:Coding Skill and the Decline of Stagnation
by Dove on Friday January 13, 2012 @04:28PM
(#3462474)
Running such a lean startup you can't afford a function invocation?
This actually isn't as wildly hypothetical a situation as one might guess. At least in the Android world, "Avoid getters and setters" is on the short list of performance suggestions.
Re:Coding Skill and the Decline of Stagnation
by pivo on Friday January 13, 2012 @05:10PM
(#3462620)
Ok, but in the general case (Sun/Oracle JDK) I'm pretty sure that there's almost no overhead for using an accessor anymore. That wasn't true of early JDKs though.
This actually isn't as wildly hypothetical a situation as one might guess. At least in the Android world, "Avoid getters and setters" is on the short list of performance suggestions.
http://developer.android.com/guide/practices/design/performa...