Benefits of 'Optimize code' option in Visual Studio build

后端 未结 5 774
情歌与酒
情歌与酒 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条回答
  •  暖寄归人
    2020-12-24 06:50

    The full details are available at http://blogs.msdn.com/jaybaz_ms/archive/2004/06/28/168314.aspx.

    In brief...

    In managed code, the JITter in the runtime does nearly all the optimization. The difference in generated IL from this flag is pretty small.

提交回复
热议问题