Is there any evidence that suggests including an entire namespace in C # slows down?
Is it better to do it
System.IO.Path.Combine....
Or include the entire System.IO namespace?
It is much better to include the namespace in the statement usingat the top of your class. The compiler doesn't care. it will emit the same IL in both directions, and your code will be shorter and easier to read.
using
No matter what, including the full namespace, it will not slow down the production code.
? , # , . - .
... , .
, , IDE , .
Adding additional namespaces may affect the compilation time of your application. This is unlikely to be noticeable in most applications, but extremes can make it visible.
However, this does not affect the performance of your application at run time.
No, the compiler is fast enough. Not sure what else I can add :)
Source: https://habr.com/ru/post/1723065/More articles:Reaching the multi-page GWT website - javaDetecting drag and drop operations in an external application using .Net - c #less restrictive GPL-like license - licensingHow to configure NHibernate to map to an array if there is no index in the table? - nhibernateHow to update Extjs progress bar with JSON results? - jsonWhen the process ends, will the returned memory be restored to the OS? - memory-leaksКак распечатать отображаемую форму в приложении Winforms? - c#Is Java or Python better for writing a web service for checking web pages in the Google App Engine? - javaSemaphores in the .NET compact framework - multithreadingIs it possible to have a free web service that will check the page and send it its HTML code? - emailAll Articles