ngen.exe

  • Thread starter Thread starter fleimeris
  • Start date Start date
F

fleimeris

hello,
i am preparing for 70-316 exam and i'm not quite sure about the answer to
the following question. i want to use ngen.exe to boost the performance of
my application. however, when should i precompile it? a) before installing
the application on the client computer or b) after installing the
application on the client computer?
thanks
 
From
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dndotnet/html/dotnetperftips.asp :

"Microsoft allows you to precompile an application by calling ngen.exe. You
can choose to run ngen.exe during install time or before you distribute you
application. It definitely makes the most sense to run ngen.exe during
install time, since you can make sure that the application is optimized for
the machine on which it is being installed. If you run ngen.exe before you
ship the program, you limit the optimizations to the ones available on your
machine."

Yves
 
Back
Top