优化.NET库的加载性能 [英] Optimize the loading performance of .NET libraries

查看:103
本文介绍了优化.NET库的加载性能的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我正在使用EWS API,但是该库的初始加载所花费的时间比预期的长.我听说有一个命令可用于加快托管.NET库的加载时间.谁能指出我正确的方向?

提前非常感谢.
亲切的问候,

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,

推荐答案

没有.第一次加载它们时,它们很慢,因此可以使用的技巧是在启动时运行一个程序来加载它们,以便在用户使用它们时更快地启动它们.
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.


您是否在谈论ngen.exe.

NGEN是添加到.NET环境中的实用程序,可生成本机代码,因此您可以在某种程度上优化代码.

我认为也有一个称为.NET Runtime Optimization服务的服务.如果保持自动,它将根据工作的优先级自动通过CLR启动到NGEN您的装配.

注意:我认为Runtime Optimization Service有一些问题,如果无法正常运行,请下载该服务的最新Service Pack.

看到这个:
http://blogs.msdn.com/davidnotario/archive/2005/04/27/412838.aspx [ ^ ]

希望对您有帮助.
干杯
:rose:
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:


这篇关于优化.NET库的加载性能的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆