Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Compile only at deployment
Message
 
To
03/07/2002 02:42:37
Martin Van Krieken
Capgemini Nederland Bv
Utrecht, Netherlands
General information
Forum:
ASP.NET
Category:
Deployments
Miscellaneous
Thread ID:
00674848
Message ID:
00675642
Views:
14
Martin,

>We are going to build a web application which will run on a server, but also on notebooks of salespeople. We want to use ASP.NET for this project, but every time the notebook is shut down the application is JITted again. This drops performance to a unacceptable rate. Is it possible to JIT the app once with installation of the application and just run this JITted code?

It is possible, by using a .NET utility NGEN.exe. However, NGEN is typically used to precompile assemblies on client machines rather than applications that run server-side such as ASP.NET apps. Since .NET caches the compiled code for subsequent calls, it's only the first hit that produces the JIT compilation--subsequent hits run the cached code.

For more information, see the .NET help topic "Native Image Generator (Ngen.exe)" for details. Another interesting .NET help topic is "Walkthrough: Using a Custom Action to Pre-Compile an Assembly During Installation".

Regards,
Kevin McNeish
Eight-Time .NET MVP
VFP and iOS Author, Speaker & Trainer
Oak Leaf Enterprises, Inc.
Chief Architect, MM Framework
http://www.oakleafsd.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform