On Thu, 27 Feb 2014 08:30:22 GMT, Sönke Ludwig wrote:
On Wed, 26 Feb 2014 20:37:39 GMT, Marc Schütz wrote:
Good news:
http://forum.dlang.org/post/jdczqcybrkflihvbbkql@forum.dlang.orgWith Adam Ruppe's patches in druntime, dynamic and static exceptions are now equally fast, but only if
toString()is not called. So this should really be disabled in production mode.Good news! Yes,
toStringshould only be called forlogDebugmessages, which should be evaluated lazily only when a logger actually accepts debug messages. However, this parameters to the log functions are currentlyauto refinstead oflazy, due to historical DMD reasons. I'll testlazyagain now.
Seems to work flawlessly now: 6014f4b
The other place where
toStringis used is for theHTTPServerErrorInfo.debugMessagefield, I'll add aHTTPServerOptionfor that to disable it.