r/cpp • u/TheCrush0r • Oct 05 '26
Measuring the Performance of Deterministic Exceptions
https://databasearchitects.blogspot.com/2026/09/measuring-performance-of-deterministic.html
49
Upvotes
r/cpp • u/TheCrush0r • Oct 05 '26
View all comments
Show parent comment
1
u/jonathanhiggs Oct 06 '26
Stack unwind is remarkably slow. Exceptions need to triggered less than 1 in 1000 time (best case) more likely less than 1 in 5000 times to realise the perf gains of avoiding structured errors, ie they need to be truly exceptional. It essentially makes them a no-go for hot loops