VS DEBUG

vs 如何調式我就不說了,這裏主要寫一些我在工作的過程中遇到的一些問題!!!

  1. stl::map 中的 clear 在 Release 版本中運行會很快,但是,在Debug 中調式會很慢,我在google上找到了解決的方案,原文如下:`

Trying setting the environment variable _NO_DEBUG_HEAP=1 in the program’s initial environment. This disables Windows’ internal debug heap, which might make it harder to debug memory corruption problems.

This KB article mentions the flag, and you can infer that the default (low-fragmentation heap) is disabled if the program is run in a debugger without that environment variable. See also this blog post, which discusses how the debug heap can slow down their program by 3-5 times.
`

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章