try catch performance

前端 未结 7 950
小蘑菇
小蘑菇 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:38

    See discussion on try/catch implementation for a discussion of how try/catch blocks work, and how some implementations have high overhead, and some have zero overhead, when no exceptions occur.

提交回复
热议问题