Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
VS2008 much slower than VS2003
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  6 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
terry  
View profile  
 More options Jun 28, 4:53 pm
Newsgroups: microsoft.public.vc.stl
From: "terry" <ne...@lyonstech.net>
Date: Sun, 28 Jun 2009 21:53:15 +0100
Local: Sun, Jun 28 2009 4:53 pm
Subject: VS2008 much slower than VS2003
Hi, can anyone help. I have some very intensive code (C++) which pushed huge
numbers of small std::map classes around, iterates across them etc. making
and deleting them on the way.

I have just ported the code to VS2008  from 2003 + Intel Compiler.

Unfortunately, the code runs very slowly! Roughly 2008 = 28 secs; 2008 +
Intel = 25secs ; 2003 = 14 secs ; VS2003 + Intel = 12 seconds.

Another piece of code using the same base library has slowed down by factors
of 100s but I have not looked in detail at it so there might be simpler
explanations.

Not completely clear where the bottlenecks are so it would be good to have
hints. Looks as if it migth be in the STL.

Terry


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Bo Persson  
View profile  
 More options Jun 29, 1:47 pm
Newsgroups: microsoft.public.vc.stl
From: "Bo Persson" <b...@gmb.dk>
Date: Mon, 29 Jun 2009 19:47:56 +0200
Local: Mon, Jun 29 2009 1:47 pm
Subject: Re: VS2008 much slower than VS2003

Have you checked(!) the information on Checked Iterators, meaning some
debugging is enabled by default even in release builds?

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

Bo Persson


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
terry  
View profile  
 More options Jun 29, 7:05 pm
Newsgroups: microsoft.public.vc.stl
From: "terry" <ne...@lyonstech.net>
Date: Tue, 30 Jun 2009 00:05:14 +0100
Local: Mon, Jun 29 2009 7:05 pm
Subject: Re: VS2008 much slower than VS2003

"Bo Persson" <b...@gmb.dk> wrote in message

news:7asd1vF20ffjnU1@mid.individual.net...

Thanks - these changes and compiler switches have made the difference.

    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Stephen Howe  
View profile  
 More options Jun 30, 9:06 am
Newsgroups: microsoft.public.vc.stl
From: Stephen Howe <sjhoweATdialDOTpipexDOTcom>
Date: Tue, 30 Jun 2009 14:06:02 +0100
Local: Tues, Jun 30 2009 9:06 am
Subject: Re: VS2008 much slower than VS2003
On Sun, 28 Jun 2009 21:53:15 +0100, "terry" <ne...@lyonstech.net>
wrote:

>Hi, can anyone help. I have some very intensive code (C++) which pushed huge
>numbers of small std::map classes around, iterates across them etc. making
>and deleting them on the way.

Then consider using a vector with reserve (possibly sorted). The
overhead of insertion/deletion with a map is considerable, more so
than what vector provides

Stephen


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Scot T Brennecke  
View profile  
 More options Jul 5, 3:55 pm
Newsgroups: microsoft.public.vc.stl
From: Scot T Brennecke <Sc...@Spamhater.MVPs.org>
Date: Sun, 05 Jul 2009 14:55:52 -0500
Local: Sun, Jul 5 2009 3:55 pm
Subject: Re: VS2008 much slower than VS2003

There's a bug in the conversion wizard when you upgrade from older
versions that might have bitten you:

Converting C++ Project From 2005 to 2008 Invisibly Disables Optimization
For Release Build | Microsoft Connect:
https://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx...


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Stephan T. Lavavej [MSFT]  
View profile  
 More options Jul 10, 4:01 pm
Newsgroups: microsoft.public.vc.stl
From: "Stephan T. Lavavej [MSFT]" <s...@microsoft.com>
Date: Fri, 10 Jul 2009 13:01:31 -0700
Local: Fri, Jul 10 2009 4:01 pm
Subject: Re: VS2008 much slower than VS2003
1. Make sure that your project is still being built with /O2 .  There's some
bug (whose details I forget, as I don't build with the IDE) where upgrading
projects drops their optimization settings on the floor.  "Oops."

2. Make sure that you're examining release performance, not debug
performance (sounds obvious, but people make this mistake far too often).

3. Try defining _SECURE_SCL to 0 project-wide (the easiest way to do this is
to compile all of your objects AND STATIC LIBRARIES with /D_SECURE_SCL=0 ).
VS 2005 and VS 2008 added _SECURE_SCL, which is enabled by default.  It
provides a last line of defense against attackers trying to exploit buggy
STL-using programs, at the cost of performance.

Stephan T. Lavavej
Visual C++ Libraries Developer

"terry" <ne...@lyonstech.net> wrote in message

news:ZfOdnSKQjOqmRdrXnZ2dnUVZ8gednZ2d@eclipse.net.uk...


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google