4

Does JITting occur per-assembly or per-method? How does this affect the working set

Ashok Bishnoi
  • 199
  • 13

2 Answers2

6

Per method. Methods that are not called are not compiled thus reducing impact on the working set.

This may help: Does the .NET CLR JIT compile every method, every time?

Community
  • 1
  • 1
Daniel Renshaw
  • 33,729
  • 8
  • 75
  • 94
2

I agree with Daniel.

If you have access to it, Jeffrey Richter's CLR via C# book provides an excellent overview of how JIT'ing occurs and how the CLR handles the results. It's a clear and concise explanation.

David Hoerster
  • 28,421
  • 8
  • 67
  • 102