4 ms·
The overhead also depends on how the compiler implements them Some compilers use setjump/longjump (sjlj), and then it needs to save all registers somewhere on
by benibela 7y ago
The overhead also depends on how the compiler implements them
Some compilers use setjump/longjump (sjlj), and then it needs to save all registers somewhere on every try{}. Probably also in every function that calls a destructor. That is very slow, even if no exception is thrown at runtime