Click here to Skip to main content
15,887,027 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
Hi all,

I am making use of the EWS API, but the initial load of the library is taking longer than expected. I heard that there is a command that can be used to speed up loading time of managed .NET libraries. Can anyone point me in the right direction?

Many thanks in advance.
Kind regards,
Posted

There isn't. The first time they load, they are slow, so the trick you can use, is to run a program on startup that loads them, so they start quicker when the user goes to use them.
 
Share this answer
 
Are you talking about the ngen.exe.

NGEN is an utility added to the .NET environment which generates Native Code, and hence you can somewhat optimize your code.

I think there is a service called .NET Runtime Optimization service as well. If you keep it automatic, it will automatically start itself by CLR to NGEN your assembly based on Priority of your work.

Note : Runtime Optimization Service has some problems I think, If you cant make it work, please download latest service pack of the service.

See this :
http://blogs.msdn.com/davidnotario/archive/2005/04/27/412838.aspx[^]

I hope this will help you.
Cheers
:rose:
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900