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

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Feb 7 17:36:53 PST 2014


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



--- Comment #18 from Jonathan M Davis <jmdavisProg at gmx.com> 2014-02-07 17:36:50 PST ---
> Maybe we shouldn't do the stack trace on non-debug builds.

Bad idea IMHO. Exceptions and their stack traces can still be logged in release
builds, which can be useful when a customer has an issue.

The results of your experimentation sound promising though.

> Whoa. If this works out well, D exceptions could finally beat Java's!

That would definitely be cool. Having fast exceptions would be a huge boon
IMHO, since code written with exceptions is generally much cleaner, and if we
can generally use exceptions in performance-critical code, then we can
generally have cleaner performant code. There will probably always be code that
will need to avoid exceptions for one reason or another, but if we can make it
so that their negative impact is minimized, that would be fantastic. Right now,
it's pretty bad.

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


More information about the Digitalmars-d-bugs mailing list