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.
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.
- vibe.d & exception performance Marc Schütz
- Re: vibe.d & exception performance Marc Schütz
- Re: vibe.d & exception performance Daniel Murphy
- Re: vibe.d & exception performance Jakob Ovrum
- Re: vibe.d & exception performance Daniel Murphy
- Re: vibe.d & exception performance Dicebot
- Re: vibe.d & exception performance Marc Schütz
- Re: vibe.d & exception performance Jakob Ovrum
- Re: vibe.d & exception performance Marc Schütz
- Re: vibe.d & exception performance Dicebot
- Re: vibe.d & exception performance Marc Schütz
- Re: vibe.d & exception performance Marc Schütz
