VS2008二进制比VS2005慢3倍? [英] VS2008 binary 3x times slower than VS2005?

查看:159
本文介绍了VS2008二进制比VS2005慢3倍?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚将一个原生的C ++项目从VS2005-SP1升级到VS2008-SP1

我测试的第一件事是对应用程序进行了一个非常基本的功能测试,我注意到的第一件事是:主数字处理算法在VS2008二进制中执行三倍。

我再次测试VS2005二进制,以确保没有任何其他差异,它仍然像以前一样执行。 />
有人绊倒了这个?

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?

推荐答案

奇怪。事情。永远。

看来vs2008的项目升级向导根本不会复制 Optimization =2属性,所以新项目没有发布中的优化。

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.

修复是转到属性对话框,将优化更改为1,然后返回到2.
再次编译,一切都能正常工作。

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.

我找不到任何官方参考资料这个模糊引用在MSDN论坛中。

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

这篇关于VS2008二进制比VS2005慢3倍?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆