Launching VS Profiler boosts Application Performance x20?

后端 未结 4 1225
情深已故
情深已故 2021-02-03 14:01

EDIT 1
I do not exclude at all this might be caused by something very basic side effect of using the Profiler (some faulty setting in my \"regular\" pro

4条回答
  •  梦谈多话
    2021-02-03 14:38

    Running with the debugger disables jit optimizations. If you run the exe normally jit optimizations will be enabled. Attaching a debugger to such a running application allows you to debug it with enabled optimizations.

    Release-Build vs Debug-Build has two consequences:

    1. A conditional compiler symbol is (un)defined
    2. It enables/disables optimizations in the C# => IL compilation.

提交回复
热议问题