Friday, 03 April 2009

Optimize startup time in ASP.NET

By: Per Bjurström

  • Average rating:
  • Number of votes: 0
  • Views: 8111

Microsoft published a new knowledge base article on April 1st and its not a joke:

FIX: You experience very slow performance on an initial request to an ASP.NET Web site after you change the App_Code folder, the bin folder, or the Global.asax file

I installed the fix and it seem to cut down 50% of the startup time when I recompile my project. Try it out yourself and let me know if it helps.

The magic switch is optimizeCompilations=”true”.

“When it is turned on, the compilation takes a less conservative approach. If you only change the App_Code folder, the bin folder, or the Global.asax file, only the affected files are recompiled. Previously compiled pages are not recompiled.”

   1: <>compilation defaultLanguage="c#" debug="true" optimizeCompilations="true">

The Windows Vista version can be downloaded directly from here (even though the title says its for another fix).

Comments

    evest

    21 September 2010 10:32 - Permanent link

    evest

    Contributing Citizen


    EPiServer employee

    Per Bjurström

    21 September 2010 10:32 - Permanent link

    Per Bjurström

    Contributing Citizen


    EPiServer employee

    Guest

    21 September 2010 10:32 - Permanent link

    Guest


    evest

    21 September 2010 10:32 - Permanent link

    evest

    Contributing Citizen


    EPiServer employee

    Guest

    21 September 2010 10:32 - Permanent link

    Guest


    Guest

    21 September 2010 10:32 - Permanent link

    Guest


    Per Bjurström

    21 September 2010 10:32 - Permanent link

    Per Bjurström

    Contributing Citizen


    EPiServer employee

About the blogger

Per Bjurström EPiServer employee
EPiServer Stockholm
Contributing Citizen
Solutions Architect on the development team in Stockholm and has been with the company since 1999.

FeedBackbutton image