且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

蚂蚁探查:如何优化时间花费在与QUOT;汇编加载或卸载"

更新时间:2023-02-17 11:53:25

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

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.