try catch performance

前端 未结 7 923
小蘑菇
小蘑菇 2020-11-29 09:28

This article on MSDN states that you can use as many try catch blocks as you want and not incur any performance cost as long no actual exception is thrown.
Since I alway

相关标签:
7条回答
  • 2020-11-29 09:57

    The JIT doesn't perform optimization on 'protected' / 'try' blocks and I guess depending on the code you write in try/catch blocks, this will affect your performance.

    0 讨论(0)
提交回复
热议问题