ngen.exe

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
 
P

phoenix

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top