我有.net应用程序的简单问题性能 [英] i have simple question performance of .net application

查看:71
本文介绍了我有.net应用程序的简单问题性能的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

从cs类中删除未使用的命名空间是否会在任何程度上提高应用程序的性能。



我使用telerik工具进行.net应用程序的perfarmance跟踪。

建议从整个应用程序中删除未使用的命名空间。这真的会提高性能。



请分享您的想法.. < br $>


谢谢,

Syed

Does removing unused namespaces from the cs class increase the performance of the application to any extent.

I am using telerik tool for perfarmance tracking of the .net application.
It is suggested to remove unused namespaces from whole application.does this really improve the performance.

Please share your thoughts..

Thanks,
Syed

推荐答案

只运行所需的程序集加载,所以即使你有未使用的使用语句也不会有任何性能问题。

但是可以通过删除不需要的using语句来减少编译时间和名称冲突等。

所以基本上这是为了代码清理和编程时间性能而不是运行时性能。
Run time only the needed assemblies will load, so there will not be any performance issue even you have unused using statements.
But compile time can be reduced and name collisions etc can be avoided by removing unwanted using statements.
So basically this is done for code cleanup and programing time performance not for run time performance.


这篇关于我有.net应用程序的简单问题性能的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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