3 ms·
Look at all the results. Even before that exceptions are more often a win than a loss. > The same test on Windows/VC++ will probably run a lot slower ... By d
by jcelerier 7y ago
Look at all the results. Even before that exceptions are more often a win than a loss.
> The same test on Windows/VC++ will probably run a lot slower ...
By default on 32-bit, with SJLJ exceptions, that's likely. But on 64-bit windows the default exception handling (SEH) uses a similar mechanism than Linux and should have comparable performance.
- irishjohnnie 7y ago> But on 64-bit windows the default exception handling (SEH) uses a similar mechanism than Linux and should have comparable performance. AFAIK SEH in Windows calls RaiseException() which in turn causes a user/kernel mode transition, probes for exception/termination handlers, and vectored exception handlers depending on the severity. It's been a while but I'm not sure the code GCC generates in Linux is quite like this.
- irishjohnnie 7y agoI missed this in my previous reply ... > Look at all the results. Even before that exceptions are more often a win than a loss. The blog post you linked to effectively says "it depends"