简体   繁体   中英

App-pool dll and GAC

We have about 80 apps that would be on the same server. Are all very small sites that use the same custom built app, aspnet webform, c#, compiled. Each app has a copy of the app dll in its own bin dir, plus some open source third party libraries (the bin folder is approx 15mb on disk) The app is by me so i can rebuild signed and put in a GAC so all sites get from there. My question is: "would be good in terms of memory consumption have just one copy of dll in gac instead of 80?" "does this may improve the overall performance and memory usage, beside tha fat that i can remove 15*80Mb disk space usage?" Thanks

Dll memory consumption would be same. One solid advantage in having a Dll registered in the GAC is that it could be found by any dot net application running on the system. The second would be whne you put a dll into the GAC, by using the ngen.exe you can generate a native image of the DLL which is a fully machine level compiled version as apposed Just in time compilation, thus would improve the execution speed. There may be other advantages, but this all that I can think of now.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM