Steve French
Steve French

Reputation: 991

How to speed up asp.net mvc 4 compliation and first load in development?

I'm working off of the stock ASP.net MVC 4 templates, and not doing anything terribly database intensive.

Every time I make a change, recompile and reload the page (i.e. refresh the page after it is fully done compiling) the initial load takes between 12-15 seconds. If I refresh the page again again it takes .150 to load.

I do have the solution a non-SSD drive, going to my system drive, which is an SSD. The solution consists of one mvc 4 project and one (empty) test project.

Any idea how to fix the initial slowness?

Upvotes: 2

Views: 1451

Answers (2)

Steve French
Steve French

Reputation: 991

Interestingly, the root cause of the problem was some malware that slipped through after a backup and the addition of dotCover from Jetrbrains. I fixed the malware and uninstalled dotCover and everything is fine.

Upvotes: 1

Andorbal
Andorbal

Reputation: 880

I followed some of the tips listed on this site, but it felt like building the temporary asp.net files to RAM disk seemed to help quite a bit.

Upvotes: 0

Related Questions