开发者

Importing name space withouth use , effect performance?

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜