jackmott
jackmott

Reputation: 1172

Reducing time between starting an MVC web application and viewing the first page

Environment:

Making a small change in one projects .cs file, hit the green arrow to test out the change. It takes about 8 seconds for the build to finish and Chrome to pop open a new tab. Not bad. But then it takes about ~30 seconds for the first page to show up.

What can be done to reduce that delay? Would pre-compiled views be the first order improvement here? What are some of the best current techniques to achieve that?

Upvotes: 1

Views: 65

Answers (2)

TheEdge
TheEdge

Reputation: 9861

Try installing Glimpse. Correctly set up it will show you where the delay is including the database calls and their duration etc.

Upvotes: 2

White Wolf
White Wolf

Reputation: 47

Install Redgate Ants and step through the code locally (potentially pointing at the production database if this is a live problem), this tool should be able to tell you where any slow down is.

One of the features is:

Jump straight to the slowest activity

The call tree in the .NET performance profiler shows you data for every method and identifies the most expensive methods, database queries, and web requests

There is a 14 day free trial, which should be enough time to diagnose your problem.

Upvotes: 1

Related Questions