Preload all assemblies (JIT)

前端 未结 5 2200
抹茶落季
抹茶落季 2020-12-10 08:53

We are taking a hit the first time some heavy UI screens are loaded. Our project is divided into one main executable and several DLL files. The DLL files can also contain UI

5条回答
  •  独厮守ぢ
    2020-12-10 08:58

    Take a look at NGen. Another option is to use ILMerge to merge all your assemblies into one. Whenever I use ILMerge, I add a post build command to so it happens automatically. The other alternative (untested) is, if you don't mind a longer start-up time, you could manually call Assembly.Load() at the beginning for each assembly.

提交回复
热议问题