Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Using Exceptions throwing in C#. Does it affect a performance?

Basically, the question is: Do the Exceptions in C# affect the performance a lot? Is it better to avoid Exceptions rethrow? If i generate an exception in my code, does it affect a performance?

Sorry for the sillines of the question itself

like image 299
0100110010101 Avatar asked Jul 02 '09 14:07

0100110010101


1 Answers

If you're worried about exception performance, you're using them wrong.

But yes, exceptions do affect performance.

like image 190
JaredPar Avatar answered Nov 10 '22 05:11

JaredPar