摘要
所谓抛出异常就是异常机制通知调用的方法出错了的手段。抛出异常也是很多人诟病异常对性能影响的地方,因为系统性能的开销很多都是由抛出异常引起。但是异常的抛出是无法避免的,手动抛出异常后,进行异常的抛出处理又需要额外的功能。本文主要介绍了抛出异常的产生、对系统性能的影响分析与测试,最后得出相应的结论。
The throwing an exception is to the notification call this exception mechanism method error means. Throw exception is also a lot of people criticized the impact of abnormal performance, because it causes the overhead of system performance. But thrown exception can not be avoided, manually throw an exception after exception thrown the treatment they need additional performance overhead. This paper mainly introduces the exception generation, analysis and test of influence on the performance of the system, and draws the relevant conclusion.
出处
《电子科学技术》
2016年第4期446-449,共4页
Electronic Science & Technology