3 ms·
This isn't benchmarked against returning a Result right? Like wouldn't bypassing any unwinding be faster than improving unwinding. You already seem to have con
by lesuorac 2y ago
This isn't benchmarked against returning a Result right?
Like wouldn't bypassing any unwinding be faster than improving unwinding. You already seem to have control over the code as the thrown and caught exception have to be the same so might as well just write the code as a `Result<T, Exception>` in the first place no?
- ctz 2y agoThe topic is how to make non-local returns faster. I would suggest that normal returns are massively faster, and not returning at all is faster still (zero instructions needed!) -- but neither of these are non-local returns.