开发者

Resource (resx) from an external resources assembly - Disk or Memory IO?

开发者 https://www.devze.com 2022-12-09 17:30 出处:网络
In .Net, When I fetch a resource from a resx in an external resources assem开发者_开发问答bly - does this involve a fetch from Disk or Memory?

In .Net, When I fetch a resource from a resx in an external resources assem开发者_开发问答bly - does this involve a fetch from Disk or Memory?

Thanks


Assemblies are loaded memmapped.

So the first time you access it it will be a Disk IO. Subsequent calls to the assembly resources will be Memory IO unless the relevant part was not (yet) loaded from disk.

BTW: This is implementation specific. So no guarantee it will always be like this. But it is for Mono and for MS.Net.

0

精彩评论

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