How does JIT compilation work for caching?

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

How does JIT compilation work for caching?

+3
source share
1 answer

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

EDIT Bug fixed with GAC and NGEN

+4
source

Source: https://habr.com/ru/post/1704928/


All Articles