Anyone know the details on try-catch blocks in C++17 on Linux? Assuming that the...
Stéphane Charette 🇨🇦 @charette@mstdn.ca
Anyone know the details on try-catch blocks in C++17 on Linux?
Assuming that the normal code path throws zero exceptions, is it correct to think that there is no overhead in having try {}? That the overhead is only in the catch {} when an exception is thrown?
Google search seems to support this idea, but I never know anymore if I can trust web searches anymore:
Quote:
> try-catch blocks add zero latency to
> your code during normal execution
> when no exceptions are thrown.
> However, if an exception is actually
> thrown, it introduces massive latency. #cpp #cpp17 #Linux