Is there any way to change the .NET JIT compiler to favor performance over compile time?
问题 I was wondering if there's any way to change the behavior of the .NET JIT compiler, by specifying a preference for more in-depth optimizations. Failing that, it would be nice if it could do some kind of profile-guided optimization, if it doesn't already. 回答1: This is set when you compile your assembly. There are two types of optimizations: IL optimization JIT Native Code quality. The default setting is this /optimize- /debug- This means unoptimized IL, and optimized native code. /optimize