Fast Exceptions
I’ve written a new unwinding runtime for GCC, and benchmarked it against various error handling regimes. It’s incredibly fast, 10x faster than the current implementation on x86 linux, but still slower than a normal function call (3x slower) and sometimes faster than return-type error handling. Benchmark code: https://github.com/DolphinGui/eh-bench GCC branch with patches: https://github.com/DolphinGui/gcc/tree/x86-exceptions-fr binutils branch with patches: https://github.com/DolphinGui/binutils/tree/x86-exceptions Background Modern error handling in C++ generally falls under two methods: return type error handling and exceptions....