News for hackers. Stuff that matters.
Re:Investigating the Performance Overhead of C++ Exceptions by gpderetta on Tuesday February 11, 2020 @07:31PM (#22304538)
while there is extra code, there should be no extra branches in the successful case. The exceptional code path is reached during unwind by comparing the IP of the throwing call with a per stack frame table (recursively walking up the stack). Also the extra code will be extremely cold, at the limit not even paged in from disk (which of course might make the first time an exception is thrown an explicit path extremely costly)

There are no comments on this comment yet.