c# - Preload all assemblies (JIT) -


we taking hit first time heavy ui screens loaded. our project divided 1 main executable , several dll files. dll files can contain ui screens slow first time loaded.

is there way (in code) can preload referenced assemblies avoid jit compilation hit?

i know there tool called ngen. possible operate ngen in development environment can see effects instantly? ideally though, preload referenced assemblies code.

using c# .net 3.5 along devexpress our ui components.

take @ ngen. option use ilmerge merge assemblies one. whenever use ilmerge, add post build command happens automatically. other alternative (untested) is, if don't mind longer start-up time, manually call assembly.load() @ beginning each assembly.


Comments

Popular posts from this blog

c# - How to set Z index when using WPF DrawingContext? -

razor - Is this a bug in WebMatrix PageData? -

visual c++ - Using relative values in array sorting ( asm ) -