var_x = MyClass.x;
takes the same amount of times as
var_x = MyClass.Get_X();
var_x = MyClass.x;
var_x = MyClass.Get_X();
quote:
Original post by Sneftelquote:Most getter/setter functions can be inlined, and thus have no overhead.
Original post by Ruudje
well, its a fact that each time you have to call a function, it takes a little time. so retreiving a var using a get-function is in fact a little slower than getting it right away.
How appropriate. You fight like a cow.