Hacker News new | ask | show | jobs
by consteval 603 days ago
My understanding of exceptions implementation in C++ is that there's zero performance cost if an exception isn't thrown. Try... catch isn't implemented as a branch, I believe.
1 comments

There indeed is zero perfomance cost. Code size cost, however, can be astonishing.