C ++在VS2005,VS2008下的EXE速度; VS2010编译器 [英] Resulting EXE speed for C++ under VS2005, VS2008; VS2010 compilers
问题描述
当我从VS6升级到VS2005时,我的默认编译设置下我的棋程序的速度提高了10%。
When I upgraded from VS6 to VS2005, I saw a 10% boost in the speed of my chess engine program with the default compile settings.
想知道如果相同一般来说是真的,并且自那以后对MS C ++编译器的最终输出做了什么改进(如果有的话)。
Wondering if the same is true in general, and what improvements, if any, have been made to the final output of the MS C++ compiler since then.
推荐答案
关于在2010之前从VC ++版本转移到VC ++ 2010+:
Regarding moving to VC++ 2010+ from versions of VC++ prior to 2010:
如果你大量使用STL容器和算法,升级到VC ++ 2010+可能提供实质上超过了10%的改进,因为VC ++ 2010+实现了C ++ 11的移动语义。
If you make heavy use of the STL containers and algorithms, upgrading to VC++ 2010+ may provide substantially more than just a 10% improvement, as VC++ 2010+ implement C++11's move semantics.
Boost 邮件列表声称其应用程序的性能从VC ++ 2008移动到VC ++ 2010时增加了900%
[boost] [GGL] [geometry] ]使用Visual C ++ 2010时不可理解的速度效益
I recall a specific post on the Boost mailing list that claimed their application's performance increased by 900% when moving from VC++ 2008 to VC++ 2010 as a result of this:
[boost] [GGL] [geometry] Inexplicable speed benefit when using Visual C++ 2010
这篇关于C ++在VS2005,VS2008下的EXE速度; VS2010编译器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!