Question

When you write an application in C#, and then run it, will it not be compiled again next time it's run, or everything that's used is gonna be recompiled every time the application starts up?

How does JIT compiling works for caching?

Was it helpful?

Solution

For any DLL that is not in the ngen'd, every time you run the application, it will re-JIT the code that is used. There is no caching of the JIT code in between runs of the same non-ngen'd DLL.

EDIT Cleared up a mistake with GAC and NGEN

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top