Click here to Skip to main content
15,889,542 members
Home / Discussions / C#
   

C#

 
AnswerRe: Preload assemblies to increase performance? Pin
J. Dunlap9-Oct-03 8:46
J. Dunlap9-Oct-03 8:46 
GeneralRe: Preload assemblies to increase performance? Pin
Carl Mercier9-Oct-03 8:48
Carl Mercier9-Oct-03 8:48 
GeneralRe: Preload assemblies to increase performance? Pin
J. Dunlap9-Oct-03 9:06
J. Dunlap9-Oct-03 9:06 
GeneralRe: Preload assemblies to increase performance? Pin
Blake Coverett9-Oct-03 11:57
Blake Coverett9-Oct-03 11:57 
GeneralRe: Preload assemblies to increase performance? Pin
J. Dunlap9-Oct-03 11:59
J. Dunlap9-Oct-03 11:59 
GeneralRe: Preload assemblies to increase performance? Pin
Blake Coverett9-Oct-03 12:03
Blake Coverett9-Oct-03 12:03 
GeneralRe: Preload assemblies to increase performance? Pin
Carl Mercier10-Oct-03 4:31
Carl Mercier10-Oct-03 4:31 
GeneralRe: Preload assemblies to increase performance? Pin
Blake Coverett10-Oct-03 8:32
Blake Coverett10-Oct-03 8:32 
Heh, I guess we did get distracted from the original question there - sorry.

I guess the correct answer is, that depends. What do you mean by 'loading the assembly'. You can certainly force assemblies to be loaded manually whenever you want via System.Reflection.Assembly.Load(AssemblyName), you could have a bunch of those at the top of your Main().

Whether this really gives the effect you want is unclear though. This will cause the assembly to be mapped and the metadata parsed, but nothing will be JITed, that still happens on a mostly per method basis.

As an aside, here is the blog entry[^] I mentioned earlier about ngen.

--
-Blake (com/bcdev/blake)
GeneralRe: Preload assemblies to increase performance? Pin
Carl Mercier10-Oct-03 8:44
Carl Mercier10-Oct-03 8:44 
GeneralRe: Preload assemblies to increase performance? Pin
Blake Coverett10-Oct-03 8:55
Blake Coverett10-Oct-03 8:55 
GeneralWindows Impersonation Context Pin
Alireza Haghshenass9-Oct-03 7:29
Alireza Haghshenass9-Oct-03 7:29 
GeneralRe: Windows Impersonation Context Pin
Blake Coverett9-Oct-03 7:40
Blake Coverett9-Oct-03 7:40 
GeneralRe: Windows Impersonation Context Pin
Mazdak9-Oct-03 10:31
Mazdak9-Oct-03 10:31 
GeneralRe: Windows Impersonation Context Pin
Blake Coverett9-Oct-03 11:59
Blake Coverett9-Oct-03 11:59 
GeneralRe: Windows Impersonation Context Pin
Mazdak9-Oct-03 20:59
Mazdak9-Oct-03 20:59 
GeneralGetManifestResourceStream Error Pin
pahluwalia9-Oct-03 7:27
pahluwalia9-Oct-03 7:27 
GeneralRe: GetManifestResourceStream Error Pin
Chris Richner10-Oct-03 0:04
Chris Richner10-Oct-03 0:04 
GeneralRemoting event Pin
devvvy9-Oct-03 6:39
devvvy9-Oct-03 6:39 
GeneralRe: Remoting event Pin
David Stone9-Oct-03 18:35
sitebuilderDavid Stone9-Oct-03 18:35 
GeneralDatagrid Events Pin
kgoodrich9-Oct-03 6:37
kgoodrich9-Oct-03 6:37 
GeneralWindows Service Pin
mcgahanfl9-Oct-03 5:41
mcgahanfl9-Oct-03 5:41 
GeneralRe: Windows Service Pin
Blake Coverett9-Oct-03 7:46
Blake Coverett9-Oct-03 7:46 
GeneralCOM+ Attribute at runtime Pin
devvvy9-Oct-03 3:20
devvvy9-Oct-03 3:20 
Generalusing unmanaged C++ code in C# .NET Pin
linderWang9-Oct-03 2:41
linderWang9-Oct-03 2:41 
GeneralRe: using unmanaged C++ code in C# .NET Pin
Randhir Sinha9-Oct-03 20:53
Randhir Sinha9-Oct-03 20:53 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.