3 ms·
Regarding error handling, I agree with this author[0], and find the C-based approach much better than C++'s try/throw/catch methods. Regarding execution times,
by klingonopera 7y ago
Regarding error handling, I agree with this author[0], and find the C-based approach much better than C++'s try/throw/catch methods.
Regarding execution times, I don't know from first-hand experience, I did some research and found this[1]. The third sentence in that reply ("The error code is not sensitive to the percentage of occurrence") is AFAIK wrong (because of speculative execution, I believe?), but the rest seems quite solid.
[0]: http://250bpm.com/blog:4 http://250bpm.com/blog:4
[1]: https://stackoverflow.com/a/52513707 https://stackoverflow.com/a/52513707