开发者

Minimizing MVC memory consumption footprint

开发者 https://www.devze.com 2022-12-09 21:12 出处:网络
开发者_如何学PythonHow can I minimize the footprint of a website built using MVC. My application currently runs at around 20mb, I\'d like to reduce it if possible.

开发者_如何学PythonHow can I minimize the footprint of a website built using MVC. My application currently runs at around 20mb, I'd like to reduce it if possible.

Edit: I've switched hosts, problem solved.


20mb is pretty good! Consider all the libraries and managed resources that need to be brought in to make pretty much any .NET application of notable size work.

If you reach a point where you can point to your application's memory footprint and say with confidence that is actually causing whatever problem you're encountering, then get some details together. Use something like Red Gate products to profile your application and see where the memory hogs and bottlenecks are. Trying to guess beforehand never works.

And aside from that, how much memory does your server have? 2gb? 4gb? Of course we should always pay due diligence to making sure our applications aren't hogs, but at the same time - take advantage of the breathing room modern computing has afforded us!


20mb is not much memory at all in the grand scheme of things. Optimize when you need to, doing so before can be wasteful. Are you hitting resource limitations on your hardware?

0

精彩评论

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