Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
consteval
· 2y ago · 0 comments
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.
Comments
[–]
112233
2y ago
There indeed is zero perfomance cost. Code size cost, however, can be astonishing.