MVC - Should I avoid to import more namespaces in view

101 views Asked by At

I know some of you guys would consider it an unrelated question but, It's an important question for an MVC developer when you making it certain to make your application efficient and speedy.

As you know that we can import a namespace into a view using 'using' clause.

My question is that should I import namespaces in view without getting worried about performance and load time of the view?

Is it really affects to import plenty of namespaces? If yes? How? And how can we get rid of this kind of performance issues?

Thanks

1

There are 1 answers

1
Guillaume Munsch On BEST ANSWER

Actually, i don't think that it can lower the performances of the website. It may make the compilation a bit longer (A little bit), but after that, your website is compiled.

And, i think you'll loose much more "performances" by all the treatment you'll have in your controllers ;)