Try/Catch Blocks Can Hurt Performance Significantly(chinhdo.com)
submitted by
chinhdo(395) 4 years, 3 months ago
Over at Programmers Heaven.com, there’s an interesting article on the potential performance impact of try/catch blocks. The article concluded that the average cost of a try/catch block is essentially nothing (sorry there’s no author information on the post), and that .NET/C# programmers should not think twice about using try/catch blocks. The author is right that a try/catch block has essentially zero cost. However, like most coding performance issues, exceptions and try/catch blocks do not have performance implications until they occur in some type of loop.
|category: C#
|Views: 54
tags:
Shit Bullshit C# another
Everyones tags:
Your Tags: