Click here to Skip to main content
15,868,073 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
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
Posted

1 solution

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.
 
Share this answer
 
Comments
Ankur\m/ 9-Dec-14 1:25am    
I remember I was also curious about it and searched the web to find the answer some couple of years ago.
Correct answer... 5!
[no name] 9-Dec-14 1:37am    
Thanks for your reply/comment.have a good day..!!!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900