News for hackers. Stuff that matters.
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.

http://developer.android.com/guide/practices/design/performa...

Re:Coding Skill and the Decline of Stagnation by campnic on Friday January 13, 2012 @05:10PM (#3462619)
Avoid internal getters and setters. This is a different issue vs. object to object getters and setters.
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.