Benefits of 'Optimize code' option in Visual Studio build

后端 未结 5 770
情歌与酒
情歌与酒 2020-12-24 06:29

Much of our C# release code is built with the \'Optimize code\' option turned off. I believe this is to allow code built in Release mode to be debugged more easily.

5条回答
  •  -上瘾入骨i
    2020-12-24 06:48

    The optimizations done by the compiler are fairly low level and shouldn't affect your users' experience.

    If you'd like to quantify the optimization on your application, simply profile a non-optimized and an optimized build and compare the results.

提交回复
热议问题