Re:Why Java exceptions are slow (and Common Lisp conditions ...
by dfox on Saturday January 17, 2009 @06:13PM
(#438731)
From casually looking at both CPython and JVM code I conclude that implementation of exception handling in Java and Python is almost same. So this is more a cultural difference than effectiveness issue.
[ Parent
| on HN ]
Re:Why Java exceptions are slow (and Common Lisp conditions ...
by gaius on Saturday January 17, 2009 @06:54PM
(#438762)
In Java you can do stuff like, the JVM is going to bounds check you anyway, so why bother checking yourself if you're about to go off the end of an array? Just i++ and catch IndexException (or whatever it's called).