昂贵如何在C#中的异常? [英] How expensive are exceptions in C#?

查看:100
本文介绍了昂贵如何在C#中的异常?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

昂贵如何在C#中的异常?好像他们是不是只要令人难以置信的昂贵为堆栈不深;但是我看了冲突的报告。

How expensive are exceptions in C#? It seems like they are not incredibly expensive as long as the stack is not deep; however I have read conflicting reports.

有一个尚未明确的反驳报告吗?

Is there definitive report that hasn't been rebutted?

推荐答案

乔恩斯基特写的在2006年1月的异常和性能在.NET

这是异常和性能终极版(感谢@Gulzar)更新

Which was updated Exceptions and Performance Redux (thanks @Gulzar)

要波多黎各马里亚尼在 .NET异常的真实成本 - 解决方案

To which Rico Mariani chimed in The True Cost of .NET Exceptions -- Solution


序号:克日什托夫·Cwalina - 设计指南更新:异常抛出

Also reference: Krzysztof Cwalina - Design Guidelines Update: Exception Throwing

这篇关于昂贵如何在C#中的异常?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆