33 ms·
> Exceptions don't need RTTI and have only runtime cost when thrown. No, they add extra control flow edges, which inhibit optimizations, affecting runtime per
by pcwalton 10y ago
> Exceptions don't need RTTI and have only runtime cost when thrown.
No, they add extra control flow edges, which inhibit optimizations, affecting runtime performance. This is a lot of the reason why unwinding is optional in Rust.