dev.e.loper
dev.e.loper

Reputation: 36054

Ways to make ASP.NET build faster

When I'm building my web project it takes about 20 seconds to compile. Then when I try to browse to a web page in project, asp.net does its runtime compilation(another 20 seconds). I know I can't escape these steps because thats how asp.net works, just want to see if anyone has some kind of optimization to make these builds faster.

Trying to improve my Edit-Compile-Test loop

My machine details:

-Intel Core i7 processor @2.80GHz
-8GB of RAM
-HD @ 7200 RPM

Upvotes: 3

Views: 2333

Answers (4)

Greg
Greg

Reputation: 16680

Suspend Resharper - R# helps tremendously when you're just coding but really slows down the Edit-Compile-Test loop.

Upvotes: 0

Andrew Lewis
Andrew Lewis

Reputation: 5256

Move your code onto a RAMDisk, or buy an SSD drive.

Upvotes: 0

Joshua
Joshua

Reputation: 3603

Here are a couple of thoughts:

  • Disable any "realtime" virus / malware protection, at least during this process.
  • Disable indexing (Windows, Google desktop, etc.) for the folders that VS uses during this process.
  • Disable / stop other processes that may be accessing the hard disk. The biggest issue here is latency - even if other applications are accessing / writing tiny files, it is the access time that kills speed.

As the original poster suggested, your biggest bang will come from hardware: get an SSD and a processor with at least 4 cores. If you were to buy 4 cheap 64GB SSD's and put them in RAID 0, you would be shocked at the difference and even discover that your CPU and RAM will suddenly become bottlenecks.

Upvotes: 1

Kibbee
Kibbee

Reputation: 66152

Buy a faster machine? Sounds like a smart answer. I know that the compiler can take advantage of multi core machines. Also, during compilation there's a lot of Hard drive access, so it may make sense to get a solid state drive. Maybe not the answer you are looking for, but it's a definite solution.

The other thing you can do is configure your project to allow for "Edit And Continue". This will allow for small things to be change, and continue debugging, without doing a full recompile.

Upvotes: 1

Related Questions