vibe.d & exception performance
Dicebot
public at dicebot.lv
Sun Feb 9 05:04:19 PST 2014
You seem to forget that actually writing data to socket takes
time and this time is longer than one needed for most simple
stack unwinding. Fun fact - even if you copy rendering code to
static exception example it will still be ~5-10% faster because
it will cancel pending async socket output and terminate fiber
early.
But yes, those results match my earlier observations -
pre-allocated exceptions with no stack trace generation are of
fast enough to not be a concern. Impact of both of those factors
is huge enough to provide DoS vector.
More information about the Digitalmars-d
mailing list