Question

In .Net, When I fetch a resource from a resx in an external resources assembly - does this involve a fetch from Disk or Memory?

Thanks

Was it helpful?

Solution

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top