ngen.exe

  • Thread starter Thread starter news.microsoft.com
  • Start date Start date
N

news.microsoft.com

Hi,


Does ngen in the latest runtime optimise more than just startup times or
does it now do more than the normal JIT?


Thanks
 
The major improvement is the fact you do not have to compile at runtime. I
believe there are some extra optimizers in the ngen process, but I do not
have anything to back it up. This was the plan during beta, but as the
Opti-JIT never materialized, it is fully possible ngen optimization hints
never materialized either.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

**********************************************************************
Think Outside the Box!
**********************************************************************
 
So really its only a benifit for that "first method call". So the gain is
highly implementation specific.

Why cant the installer or runtime do this anyway for that particular
version/culture of build?

Native images are stored in the GAC, can this be changed?

--

Jack Mayhoff
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
 
Another benefit of native image is that it can be re-used by multiple
processes. IL Assembly cannot because it has to be compiled in the address
space of a particular process.

Why do you care where native images are stored? They could be anywhere, as
long as they could be found/used by the runtime.
 
NGen was discussed at the PDC this past October and it was mentioned that
the native images can become invalid if any configuration change is made to
the machine, Windows (e.g. changing the service pack level), etc. and Jeff
Richter advised against it.

If you do decide to use it though do the NGEN as part of the .MSI installer
such that you have the optimizations for the machine in question and not the
build machine.
 
Back
Top