We want to reduce the load time for bringing up Forms in our app. We have plenty of time in a worker thread to load the DLLs (mostly a ton of DevExpress DLLs) before a user will want one. I've read a number of posts here, on MSDN, etc. and have a couple of questions.
- Most of the DLLs are in the GAC. I think (not sure) that NGEN is run on those DLLs either when installed or the first time used. Is that correct? If so, no need to call NGEN.
- We have 2 DLLs that are not in the GAC, is there an example of how to call NGEN in a WIX script?
- We still need to load them. Is loading assemblies or PrepareMethod the better approach?
- We are an Office AddIn (hence lots of time to load in a worker thread) and have one DLL (not in the GAC) that is loaded when Office starts. Is NGEN the only thing we can do to speed up loading that main DLL?
- We also have a single not-managed C++ (shim) DLL that is also loaded when Office starts. Anything we can do to speed it up?
thanks - dave