Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

PERFORMANCE IN VISUAL STUDIO 2008 + STL.

4 views
Skip to first unread message

Deepak Kapila

unread,
Sep 18, 2009, 6:21:03 AM9/18/09
to
Hi Group,

We recently migrated our project from VS 2003 to VS 2005 and found that our
runtime performance in release mode has degraded by a factor of 3. On
investigation we found that it was due to stl in VS 2005. Building with
STLPort confirmed this. As of now we are not in a position to migrate to
STLPort as we depend on lots of 3rd party libs. Can you give any suggestion
for compiler paramaters or patch which can speed up the stl performance.

Regards
Deepak

Igor Tandetnik

unread,
Sep 18, 2009, 7:43:11 AM9/18/09
to
Deepak Kapila wrote:
> We recently migrated our project from VS 2003 to VS 2005 and found
> that our runtime performance in release mode has degraded by a factor
> of 3. On investigation we found that it was due to stl in VS 2005.

Turn off checked iterators:

http://msdn.microsoft.com/en-us/library/aa985965.aspx

--
With best wishes,
Igor Tandetnik

With sufficient thrust, pigs fly just fine. However, this is not
necessarily a good idea. It is hard to be sure where they are going to
land, and it could be dangerous sitting under them as they fly
overhead. -- RFC 1925


Scot T Brennecke

unread,
Sep 19, 2009, 1:32:10 PM9/19/09
to
Igor Tandetnik wrote:
> Deepak Kapila wrote:
>> We recently migrated our project from VS 2003 to VS 2005 and found
>> that our runtime performance in release mode has degraded by a factor
>> of 3. On investigation we found that it was due to stl in VS 2005.
>
> Turn off checked iterators:
>
> http://msdn.microsoft.com/en-us/library/aa985965.aspx
>
Or, at least turn them off in release mode. Having iterator debugging in debug mode can find important mistakes.

Stephan T. Lavavej [MSFT]

unread,
Sep 21, 2009, 6:32:26 PM9/21/09
to
_SECURE_SCL (aka checked iterators) and _HAS_ITERATOR_DEBUGGING (aka
debugging iterators) are different things.

VC10 will make this story more comprehensible.

STL

"Scot T Brennecke" <Sc...@Spamhater.MVPs.org> wrote in message
news:ejYUf8UO...@TK2MSFTNGP06.phx.gbl...

Giovanni Dicanio

unread,
Sep 22, 2009, 3:17:56 AM9/22/09
to
Stephan T. Lavavej [MSFT] ha scritto:

> _SECURE_SCL (aka checked iterators) and _HAS_ITERATOR_DEBUGGING (aka
> debugging iterators) are different things.
>
> VC10 will make this story more comprehensible.

This video of yours on Channel 9 makes things clear:

"STL Iterator Debugging and Secure SCL"
http://channel9.msdn.com/shows/Going+Deep/STL-Iterator-Debugging-and-Secure-SCL/

Giovanni

0 new messages