开发者

.NET Multifle Assemblies...Can save RAM space because secondary modules loaded on demand?

开发者_运维知识库

Im studying up on .NET multifile assemblies. In the context of multifile assemblies, the book states:

*.netmodules [not the primary module] are loaded on demand by the CLR when used by the calling code

Set me on the right track if I'm wrong, but when calling an executable file, all referenced assemblies, including the executable file's compiled code is loaded into memory, and then is processed by the JIT (Just in time compiler) when the code is called. I may be misunderstanding the quote above, but how I am reading the quote is that .netmodules that are part of a multifle assembly are not loaded into memory until called.

Am I right in thinking this?


... but when calling an executable file, all referenced assemblies, including the executable file's compiled code is loaded into memory

No. Assemblies are loaded as they are needed. if you do not ever need an assembly (e.g. satellite resource assembly for particular language or any reference) they are not loaded. JIT of such assemblies are done whenever they are accessed and loaded. For reference, use Richter's CLR via C#.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜