G ++, cost of exceptions when I don't use exceptions
2 answers
Probably minimal - the cost of an exception mostly occurs if an exception actually occurs. However, as usual, the answer is to try it out and time, which in this case will seem trivially simple. There are quite a few questions to this question, such as How many occupied exception handling C ++ adds .
+7
anon
a source
to share
The main difference is likely to be more in the size of the generated code than in the speed of execution. Obviously, you can check this out to see what the difference is, but if your interest is primarily about speed of execution, it probably won't have enough difference to be noticed or taken care of.
+3
a source to share