[Issue 9584] Exceptions in D are ludicrously slow (far worse than Java)

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Feb 25 03:49:39 PST 2013


http://d.puremagic.com/issues/show_bug.cgi?id=9584



--- Comment #3 from Don <clugdbug at yahoo.com.au> 2013-02-25 03:49:32 PST ---
Exception handling is not intrinsically very slow. Basically there are two
function calls per stack frame, each of which only executes a handful of
instructions. All of the data that is accessed lies on the stack, so it should
be in cache. On Windows, there are a few system calls during stack unwinding,
but they are also extremely quick.

But even so, I'm a bit suspicious of that Java code. Is it really throwing an
exception? If it contains any exception handling optimisations at all, it would
optimize the throw/catch away.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list