Resource (resx) from an external resources assembly - Disk or Memory IO?
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.
精彩评论