简体   繁体   中英

Ants Profiler: How to optimize time spend in “Assembly load or unload”

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM