Re:C++'s `Noexcept` Can (Sometimes) Help (Or Hurt) Performance
by aw1621107 on Wednesday August 07, 2024 @05:17PM
(#41185634)
Sounds promising!
Do you think optimizations could eventually bring the std::terminate version of noexcept near/up to par with a hypothetical UB noexcept, or do you think that at least some overhead will always be present?
I'm just a little sore about it because it was being sold as a "hey here is an optimization!" and it very much was not, at least from where I was sitting. I thought this was a very very good case of having it be UB (I think the entire class of user source annotations like this should be UB if the runtime behavior violates the user annotation)