DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://issues.apache.org/bugzilla/show_bug.cgi?id=35037>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND· INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=35037 ------- Additional Comments From [EMAIL PROTECTED] 2005-05-26 19:09 ------- Daniel: If there's a lot other stuff going on that introduces measurement variance and perturbation, it makes sense to isolate the cast issue into a small microbenchmark. I think the code I sent demonstrates beyond doubt that the "instanceOf + cast" version is always faster no matter which branch is taken. It doesn't matter which branch is more common, it's always faster. The "catch ClassCastException" is an idiom that may have worked well in JDK <= 1.2 but it is demonstrably counterproductive on more recent VMs. -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]