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

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Feb 27 01:12:24 PST 2013


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



--- Comment #7 from Jonathan M Davis <jmdavisProg at gmx.com> 2013-02-27 01:12:16 PST ---
> D does none. It's possible that this is what you're seeing. I can't yet tell
> if there is a bug here or not.

There's a bug in the sense that D's exception performance sucks. If Java's
doing enough fancy optimizations, it may be that we can't match its performance
(especially if it's taking advantage of JVM stuff to do that), but unless there
is a fundamental reason why D's exceptions cannot be made faster, then they
should be. As it stands, it's ludicrously expensive to even just write unit
tests which verify that a function throws when it's supposed to, because the
cost of those exceptions quickly dwarfs everything else going on in the tests,
making them take orders of magnitude longer.

-- 
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