> -----Original Message----- > From: Finn Bock [mailto:[EMAIL PROTECTED]
> The result is then: > > [/d/fop] /c/java/jdk1.2.2/jre/bin/java.exe -cp . x > false method call 581 > true method call 581 > false instanceof 160 > true instanceof 170 > > [/d/fop] /c/java/jdk1.3.1_03/jre/bin/java.exe -cp . x > false method call 1272 > true method call 2304 > false instanceof 17945 > true instanceof 912 > > [/d/fop] /c/java/j2sdk1.4.2_02/bin/java.exe -cp . x > false method call 2154 > true method call 2754 > false instanceof 590 > true instanceof 651 > Very, very interesting... Java's OO-optimization at its best (except for 1.3)! After all, it shouldn't be *that* surprising that an accessor-method-call generates more overhead than a test for class-membership (but what if the class in question is not yet loaded at time? Not that this should occur a lot...) Cheers, Andreas