蚂蚁探查:如何优化时间花费在与QUOT;汇编加载或卸载" [英] Ants Profiler: How to optimize time spend in "Assembly load or unload"

查看:328
本文介绍了蚂蚁探查:如何优化时间花费在与QUOT;汇编加载或卸载"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用蚂蚁Profiler来分析我的ASP.Net应用程序。探查显示系统花费近30%的时间在集结号装载或卸载,并有65任何想法我如何能优化组件加载或卸载时的命中次数?
我的ASP.Net应用程序包含了近10项目\\ DLL引用。在asp.net应用程序还缓存经常使用的数据转换成XML文件和读取缓存的数据。

I am using Ants Profiler to profile my ASP.Net application. The profiler shows the system spend nearly 30% time in "Assembly load or unload" and there was a hit count of 65. Any ideas on how can I optimize the "Assembly load or unload" time?? My ASP.Net application consists of nearly 10 project\dll references. The asp.net application also caches frequently used data into xml files and reading the cached data.

推荐答案

装载程序集的一个昂贵的操作,但是一旦一个程序集加载,它不能,除非整个应用程序域被卸载卸载。概要分析是相对的。如果您在分析应用程序的启动,那么,程序集加载将显示为一大瓶颈,但在更长的一段时间内,花费的时间装载组件的相对比例应低得多。

Loading assemblies is an expensive operation, however once an assembly is loaded, it cannot be unloaded unless the entire app domain is unloaded. Profiling is all relative. If you are profiling the application startup, then yes, assembly loading will show up as a major bottleneck, but over a longer time period, the relative percentage of time spent loading assemblies should be much lower.

这篇关于蚂蚁探查:如何优化时间花费在与QUOT;汇编加载或卸载"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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