Any way to Pre - JIT compile an application

  • Thread starter Thread starter Jeff M
  • Start date Start date
J

Jeff M

The first time I hit a form it takes a few seconds but the second time it
runs much faster.

Message:
Filling DataSet 2383ms
Time: 8/12/2003 5:08:06 PM
Message:
Filling DataSet 611ms
Time: 8/12/2003 5:08:14 PM
Message:
Filling DataSet 575ms
Time: 8/12/2003 5:08:16 PM

Anyway to do this up front ? I have some performance requirements I am
trying to meet.

Thanks,

Jeff
 
There is no way to pre-JIT assemblies for the CF like there is for the full
framework. THe only option is to spawn a thread at startup and call some
arbitrary method in your class to JIT it before you'll actually need it.
 
Just call Any method of the class so the class loads ?

Hmm. I thought the code was compiled per method call not class.

In that case I can just call the constructor of each class ?
 
Back
Top