473,408 Members | 1,730 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,408 software developers and data experts.

C/C++ Console App running 10 times slower in VS2005 from VS2003

Well, I dont exactly know if there was a change in how Console Application
projects are run/compiled from VS2003 to 2005 or what, but I have an
application (mostly C) that used to run in about 2 minutes and now runs in
hours. The output of the program seems the same, but the time it takes it
run is ridiculous. Yes, I get the general warnings when I compile to use the
now more secure functions fopen_s instead of fopen, etc. but no errors
really. I'm not quite sure as to why the program now takes sooooo much
longer to run than previously Any suggestions? When I opened the project I
let VS2005 convert it from VS2003 type. Should I not have done that? Any
suggestions?
Thanks
Matt
--
www.Fiddelke.org
Apr 3 '06 #1
2 1374
Fiddelm3742 wrote:
Well, I dont exactly know if there was a change in how Console Application
projects are run/compiled from VS2003 to 2005 or what, but I have an
application (mostly C) that used to run in about 2 minutes and now runs in
hours. The output of the program seems the same, but the time it takes it
run is ridiculous. Yes, I get the general warnings when I compile to use the
now more secure functions fopen_s instead of fopen, etc. but no errors
really. I'm not quite sure as to why the program now takes sooooo much
longer to run than previously Any suggestions? When I opened the project I
let VS2005 convert it from VS2003 type. Should I not have done that? Any
suggestions?


You're running the Release build, right? And it is compiled with
optimizations enabled? Excepting a few CRT functions (those that use
thread local storage) and the memory allocator, on the whole, VC++8
produces faster code than VC++7.1, so it is likely a problem with your
compiler settings. It might also conceivably be a bug in the code that
was masked under VS2003, though this is less likely I think.

Tom
Apr 4 '06 #2
Hi Tom!
You're running the Release build, right? And it is compiled with
optimizations enabled? Excepting a few CRT functions (those that use
thread local storage) and the memory allocator, on the whole, VC++8
produces faster code than VC++7.1, so it is likely a problem with your
compiler settings. It might also conceivably be a bug in the code that
was masked under VS2003, though this is less likely I think.


You a small note: The compiler intrinsic are now enabled by default
which are far slower than the CRT implementation, see:
http://lab.msdn.microsoft.com/produc...1-9b4c1fe463d9

The strcmp is about 5-6 times slower...

Greetings
Jochen
Apr 4 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: _R | last post by:
I've got a few apps that were designed to be used via MSDOS window. They make use of the old-style VC++6 Console class for doing writes, cursor repositioning, scrolling, etc. (Unfortunate name...
2
by: -DG- | last post by:
No reply on my previous query, so I'll post this again. I've done a bit more research in the interim. I'm trying to find an easy way to port code from the older VS2003 format to the format used...
14
by: Steve McLellan | last post by:
Hi, Sorry to repost, but this is becoming aggravating, and causing me a lot of wasted time. I've got a reasonably large mixed C++ project, and after a number of builds (but not a constant...
3
by: Darrin | last post by:
Hello, I see that VS2005 and the new framework 2.0 is out to the public now. Wondering about some things. When you install the new framework 2.0 can a person still use visual studio 2003 or...
5
by: GaryDean | last post by:
(my original post was inaccurate but this post accurately describes what I think is a very bad vs2005 bug) short description... Deleting a dataset and recreating it from the dataadapter causes...
2
by: Rick | last post by:
I have VS2005 solution containing a console app project plus a lot of projects it depends on. When I compile the solution, only those dlls that are directly referenced are copied to the console app...
9
by: DrZogg | last post by:
It can't be... say it isn't so... Yes.. there is a fly in the ointment This bug requires 3 projects... yes this is a real world production issue not some tinker toy thing. Start with a C#...
15
by: Joseph Geretz | last post by:
OK, I'll admit it up front - I just don't get it. Here's our previous VS2003 development model. Developers develop the WS solution on their own workstations, using their own IIS web servers...
15
by: wizofaus | last post by:
I have a chunk of code which is essentially IDbCommand cmd = db.CreateCommand(); cmd.CommandText = "SELECT X, Y, Count(*) FROM Foo WHERE Z = 1 GROUP BY X, Y"; using (IDataReader reader =...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.