By far the most expensive part of exception raising is generating the backtrace. The non-local exit is relatively inexpensive. When using exceptions for flow control, you should use an empty backtrace to avoid generating a backtrace you are just going to ignore.
6.2 KiB
6.2 KiB