VS2008 binary 3x times slower than VS2005?

大憨熊 提交于 2020-01-02 03:33:04

问题


I've just upgraded a native C++ project from VS2005-SP1 to VS2008-SP1
The first thing I tested was a very basic functionality test of the application and the first thing I noticed is that the main number-crunching algorithm performs three times slower in the VS2008 binary.
I tested again the VS2005 binary to make sure there isn't any other difference and it still performed as it did before.
Did anyone stumble into this?


回答1:


Strangest. Thing. Ever.

It seems that the project upgrade wizard of vs2008 simply doesn't copy the 'Optimization="2"' property so the new project is left with no optimization in release.

The fix was to go to the properties dialog, change optimization to 1 and then back to 2. compile again and everything works it should.

I couldn't find any official reference for this only this obscure reference in an MSDN forum.



来源:https://stackoverflow.com/questions/361730/vs2008-binary-3x-times-slower-than-vs2005

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!