Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How does JIT compiling works for caching?

Tags:

c#

.net

jit

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?

like image 511
Joan Venge Avatar asked Aug 30 '26 03:08

Joan Venge


1 Answers

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

like image 62
JaredPar Avatar answered Sep 01 '26 16:09

JaredPar



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!