Exceptions are expensive and I hope no body uses it in the hot path (80%). The compiler has to inject a lot of code to unwind the stack that affects the cache. It is however not expensive for common operations (20%).
There are couple of threads in dforum that discusses this and to have throw attribute [1] and eventually making nothrow as default [2].
There are couple of threads in dforum that discusses this and to have throw attribute [1] and eventually making nothrow as default [2].
[1] https://forum.dlang.org/thread/sbdrybtyfkxfhxxjgqco@forum.dl...
[2] https://forum.dlang.org/post/qur0l0$2h8s$1@digitalmars.com