r/cpp • • Oct 05 '26

Measuring the Performance of Deterministic Exceptions

https://databasearchitects.blogspot.com/2026/09/measuring-performance-of-deterministic.html
49 Upvotes

16 comments sorted by

View all comments

Show parent comment

5

u/serviscope_minor Oct 06 '26

Well, itanium ABI performance is literally unbeatable on the happy path, at the expense of the sad path.

But that's not really the point: basically return value exceptions have always been a valid implementation choice, but no one chose to implement them that way. There are various reasons, but I'm not sure a whole new feature for something that can already be done in a compliant way is the right choice.

2

u/Expert-Map-1126 vcpkg maintainer BillyONeal Oct 08 '26

I'm not convinced it was a valid implementation choice given how "infectious" exceptions normally are. Existing Cish functions before exceptions were added were already out/shipping; it was not a clean slate where they could be established on the traditional return paths without some form of interface opt-in.