Does it help to use NGEN?

NGen will only help startup time – it doesn’t make the code execute any faster than it would after JITting. Indeed, I believe there are some optimizations which NGen doesn’t do but the JIT does.

So, the main question is: do you have an issue with startup time? I don’t know how much of an ASP.NET application’s start-up time will be JITting vs other costs, btw… you should probably look at the Performance Manager graphs for the JIT to tell you how much time it’s really costing you.

(In terms of availability, having multiple servers so you can do rolling restarts is going to give you much more benefit than a single server with an NGENed web app.)

Leave a Comment