官术网_书友最值得收藏!

How releasing builds increases performance

Release and debug builds are two build modes provided in .NET applications. Debug mode is mostly used when we are in the process of writing code or troubleshooting errors, whereas release build mode is often used while packaging the application to deploy on production servers. When developing the deployment package, developers often miss updating the build mode to the release build, and then they face performance issues when the application is deployed:

The following table shows some differences between the debug and release modes:

Debug

Release

No optimization of code is done by the compiler

Code is optimized and minified in size when built using release mode

Stack trace is captured and thrown at the time of exception

No stack trace is captured

The debug symbols are stored

All code and debug symbols under #debug directives are removed

More memory is used by the source code at runtime

Less memory is used by the source code at runtime

主站蜘蛛池模板: 扶风县| 开平市| 常熟市| 彩票| 霍邱县| 连平县| 湟中县| 宜兰市| 云林县| 垣曲县| 原平市| 叶城县| 玉屏| 荔浦县| 怀集县| 上蔡县| 新田县| 新干县| 青冈县| 清水县| 团风县| 舒城县| 邻水| 黄梅县| 温宿县| 上林县| 武强县| 昭觉县| 汶上县| 凤山市| 武冈市| 阳山县| 新乐市| 泸定县| 阜康市| 苗栗县| 墨江| 湘西| 云林县| 保德县| 青浦区|