Y
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
112233
602 days ago
There indeed is zero perfomance cost. Code size cost, however, can be astonishing.
link