Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 618681
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T18:34:23+00:00 2026-05-13T18:34:23+00:00

How do you improve your ASP.NET MVC application performance?

  • 0

How do you improve your ASP.NET MVC application performance?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T18:34:24+00:00Added an answer on May 13, 2026 at 6:34 pm

    A compiled list of possible sources of improvement are below:

    General

    • Make use of a profiler to discover memory leaks and performance problems in your application. personally I suggest dotTrace
    • Run your site in Release mode, not Debug mode, when in production, and also during performance profiling. Release mode is much faster. Debug mode can hide performance problems in your own code.

    Caching

    • Use CompiledQuery.Compile()
      recursively avoiding
      recompilation of your query
      expressions
    • Cache not-prone-to-change
      content using OutputCacheAttribute
      to save unnecessary and action
      executions
    • Use cookies for frequently accessed non sensitive information
    • Utilize ETags and expiration – Write your custom ActionResult methods if necessary
    • Consider using the RouteName to organize your routes and then use it to generate
      your links, and try not to use the expression tree based ActionLink method.
    • Consider implementing a route resolution caching strategy
    • Put repetitive code inside your PartialViews, avoid render it xxxx times: if you
      end up calling the same partial 300 times in the same view, probably there is something
      wrong with that. Explanation And Benchmarks

    Routing

    • Use Url.RouteUrl("User", new { username = "joeuser" }) to specify routes. ASP.NET MVC Perfomance by Rudi Benkovic

    • Cache route resolving using this helper UrlHelperCached ASP.NET MVC Perfomance by Rudi Benkovic

    Security

    • Use Forms Authentication, Keep your frequently accessed sensitive data in the
      authentication ticket

    DAL

    • When accessing data via LINQ rely on IQueryable
    • Leverage the Repository pattern
    • Profile your queries i.e. Uber Profiler
    • Consider second level cache for your queries and add them an scope and a timeout i.e. NHibernate Second Cache

    Load balancing

    • Utilize reverse proxies, to spread the client load across your app instance. (Stack Overflow uses HAProxy (MSDN).

    • Use Asynchronous Controllers to implement actions that depend on external resources processing.

    Client side

    • Optimize your client side, use a tool like YSlow for
      suggestions to improve performance
    • Use AJAX to update components of your UI, avoid a whole page update when possible.
    • Consider implement a pub-sub architecture -i.e. Comet- for content delivery against
      reload based in timeouts.
    • Move charting and graph generation logic to the client side if possible. Graph generation
      is a expensive activity. Deferring to the client side your server from an
      unnecessary burden, and allows you to work with graphs locally without make a new
      request (i.e. Flex charting, jqbargraph, MoreJqueryCharts).
    • Use CDN’s for scripts and media content to improve loading on the client side (i.e. Google CDN)
    • Minify –Compile– your JavaScript in order to improve your script size
    • Keep cookie size small, since cookies are sent to the server on every request.
    • Consider using DNS and Link Prefetching when possible.

    Global configuration

    • If you use Razor, add the following code in your global.asax.cs, by default, Asp.Net MVC renders with an aspx engine and a razor engine. This only uses the RazorViewEngine.

      ViewEngines.Engines.Clear();
      ViewEngines.Engines.Add(new RazorViewEngine());

    • Add gzip (HTTP compression) and static cache (images, css, …) in your web.config
      <system.webServer>
      <urlCompression doDynamicCompression="true" doStaticCompression="true" dynamicCompressionBeforeCache="true"/>
      </system.webServer>

    • Remove unused HTTP Modules
    • Flush your HTML as soon as it is generated (in your web.config) and disable viewstate if you are not using it
      <pages buffer="true" enableViewState="false">
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 364k
  • Answers 364k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer You can scope your model with hash conditions, and then… May 14, 2026 at 3:43 pm
  • Editorial Team
    Editorial Team added an answer Are you loading the Facebook Connect javascript libraries? fbml is… May 14, 2026 at 3:43 pm
  • Editorial Team
    Editorial Team added an answer Traditionally, motherboards come with device drivers that provide functionality to… May 14, 2026 at 3:43 pm

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.