On Wed, Sep 16, 2009 at 4:42 PM, Anselm R Garbe > > IDE's like Eclipse have code assitance support to generate these > automatically, great isn't it? So if you imagine a Java program where > each datum access happens through getters and setters, the program > must become a magnitude faster if the underlying code would be > replaced using direct datum/field access instead, wouldn't it? >
No, because even in C the compiler should be smart enough to do it for you. In Java, you can have even more convoluted code and the interpreter can optimize it for you while it runs. GCC supports something similar as well with -fprofile-generate and -fprofile-use .