Should I precompile??

Discussion in 'ASP.NET 2.0' started by Aztecs1, Feb 14, 2008.

  1. I have some relatively simple pages on my site. Which take awhile to load up the first time (since they are being compiled the first time they are requested). I have two questions:

    Should this be occurring for every user session? Or just the first time each of the we pages is requested? It seems to be happening for each session.

    Do most of you precompile your sites? I don't expect to make many on-the-fly changes to web pages.

    Thanks
     
  2. Bruce

    Bruce DiscountASP.NET Staff

    >Should this be occurring for every user session? Or just the first time each of the we pages is requested? It seems to be happening for each session.

    Application should only be compiled w/ first load or everytime the process starts.

    >Do most of you precompile your sites? I don't expect to make many on-the-fly changes to web pages.

    I don't have the exact statistic but I think most user do not use precompile.

    Bruce

    DiscountASP.NET
    www.DiscountASP.NET
     
  3. I actually find it handy as a last bug check to hit published pages, which will compile them.
    It's a 2-for. [​IMG]
     

Share This Page