-
try catch(...)
Hi,
I was wondering if using try catch reduce speed (performance)
if so does using a general try catch (with catch(...) and not a specific catch) decrease performance even more?
I'm not asking here about the code stability what I'm interested in is performance (by mean of speed)
Thanks in advance
avi123
-
Re: try catch(...)
Exception handling in general will most-likely decrease the processing speed in case any exceptions are being thrown. If not, the code behaves the same as without exception handling...
-
Re: try catch(...)
... which is why try-catch is used for exceptioinal error. IMHO, errors that occur frequently should avoid using try-catch.
-
Re: try catch(...)
I only normally throw exceptions when there has been a user error, which can include an environmental error, i.e. a file not existing that should (or could not be opened because of permissions etc), or invalid data etc.