3 ms·
> the compiler struggles to optimize them, Nitpick: I'd say if you need the compiler to optimize exception handling you are using them wrong. Exceptions are f
by skinkestek 6y ago
> the compiler struggles to optimize them,
Nitpick: I'd say if you need the compiler to optimize exception handling you are using them wrong.
Exceptions are for exceptional circumstances.
(if you mean that exceptions mess up optimization of surrounding code that could be a bigger deal but I won't accept that without pointers to benchmarks$
- mhh__ 6y agoExceptions force a less efficient ABI, for example - take a look at unique_ptr, it should be in a register but it's not.