3 ms·
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 t
by gpderetta 7y ago
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)