开发者

Importing name space withouth use , effect performance?

开发者 https://www.devze.com 2022-12-17 01:54 出处:网络
Is there any deficiency performance if import a lot of name space in Web.config or in every single cs file while it\'s no开发者_如何学编程t necessary to be in all classes ?

Is there any deficiency performance if import a lot of name space in Web.config or in every single cs file while it's no开发者_如何学编程t necessary to be in all classes ?

Thank you


Short answer: No, there shouldn't be any runtime performance impact. 'import' is a compiler directive that is more related to compilation.

However depending on the nature of the way you deploy your website/webapp, the compilation might take place during 'production' and hence might have some influence, though I would not think it'll be much.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号