Pre-JIT

MIB

New member
Joined
Nov 16, 2005
Messages
1
Programming Experience
Beginner
Using ngen tool, we can Pre-JIT assemblies to boast performance. Then why not all assemblies pre-JIT. Why is this not extensively used.
 
My guess is that not every object needs to be compiled to binary pre-run. I have a few class libraries that house alot of my data access functionality. All of my different apps reference those dll's, but I didn't make one for every database. If the JIT compiler compiled every object in that dll from IL to binary; it would be an insane amount of wasted space.

Atleast, that's my take on it.
 
Also, it's only going to affect performance on the first run. Once the IL has gone through the JIT, the compiled parts are cached so it doesn't need to run the JIT on laters runs - unless there's a change ti the IL.

-tg
 
Back
Top