Performance differences between debug and release builds

前端 未结 8 1285
迷失自我
迷失自我 2020-11-21 22:48

I must admit, that usually I haven\'t bothered switching between the Debug and Release configurations in my program, and I have usually opted to go for the

8条回答
  •  别跟我提以往
    2020-11-21 23:15

    I would say that

    1. largely depends on your implementation. Usually, the difference is not that huge. I did lots of measurements and often I couldn't see a difference. If you use unmanaged code, lots of huge arrays and stuff like that, the performance difference is slightly bigger, but not a different world (like in C++).

    2. Usually in release code fewer errors are shown (higher tolerance), hence a switch should work fine.

提交回复
热议问题