Should I use dll instead of class for faster startup?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • aykutcanturk
    New Member
    • May 2007
    • 2

    Should I use dll instead of class for faster startup?

    I wonder if an aspnet (framework4.5) site startups faster if I use compiled dlls instead of using class files in app_code folder ? (I need fast startup times. I miss old asp times)

    logically framework compiles all aspnet site. if I extract class files under app_code folder and compile them as a dll, like separate project, JIT compiler should spent less time.

    is that correct ? any ideas ?
  • Frinavale
    Recognized Expert Expert
    • Oct 2006
    • 9749

    #2
    You should be able to publish your application.

    This action will precompile your code and generate the things that you need to move to a live server.

    It will make your application quicker because asp.net will not have to compile the pages every time they are requested.

    So, try publishing your web application :)

    -Frinny

    Comment

    • aykutcanturk
      New Member
      • May 2007
      • 2

      #3
      Actually I published my web site. I also tried to use fixed assembly names. but it didnt helped. this is maybe 50 pages web site and takes 30 seconds to 1 minute to compile. I can monitor process from task manager and I can see vbc.exe is compiling.

      Comment

      Working...