October 31, 2005

Small performance hit in the VC++ 2005 debug-version...

If you see a small performance decrease in the debug-version of your application, after you have ported it from VC7.1 to VC8 (aka VS2005), there might be some reason in the newly added feature for the “threshold controlling buffer-filling”.

All CRT functions which are filling some kind of buffers are now padding the buffer with a special byte (0xFD). This might help to find if a incorrect size was passed.

If you do not want this feature, you can call the _CrtSetDebugFillThreshold function, with 0 as parameter, which will disable this behaviour.

I also miss some kind of better documentation about this feature. At least a small sentence in the Security Enhancements in the CRT should be added…


Posted 2 years, 2 months ago on October 31, 2005
The trackback url for this post is http://blog.kalmbachnet.de/bblog/trackback.php/50/

Comments have now been turned off for this post