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,
toString
should only be called forlogDebug
messages, which should be evaluated lazily only when a logger actually accepts debug messages. However, this parameters to the log functions are currentlyauto ref
instead oflazy
, due to historical DMD reasons. I'll testlazy
again now.
Seems to work flawlessly now: 6014f4b
The other place where
toString
is used is for theHTTPServerErrorInfo.debugMessage
field, I'll add aHTTPServerOption
for that to disable it.