473,480 Members | 1,805 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Command line EXE is slow, fast in Visual C++ environment

Something weird is happening here... when I run my code from the Visual
C++ environment it is 3 to 4x faster than running the same code from
the DOS command line. Any explanation why is this happening?

Jul 23 '05 #1
3 1372
"spidey" <ch*******@yahoo.com> schrieb:
Something weird is happening here... when I run my code from the Visual
C++ environment it is 3 to 4x faster than running the same code from
the DOS command line. Any explanation why is this happening?


Is the executable the same or do you run the Debug version in Visual
Studio and outside the Release one?

T.M.
Jul 23 '05 #2
Actually, it is slower when I use command line.
And yes, I'm using the release version in both cases (I have to move it
from the release\ directory before running it).

Jul 23 '05 #3
spidey wrote:
Actually, it is slower when I use command line.
And yes, I'm using the release version in both cases (I have to move it
from the release\ directory before running it).


How do you know it's slow? Did you add statements to log the times between
critical events? Or does it just "look slow"?

Maybe it's slow because the copy in the Release folder was still in the OS
file cache at run time, so running the program from a different folder
required more disk activity. Either way, the run-time speed should be the
same.

--
Phlip
http://www.c2.com/cgi/wiki?ZeekLand

Jul 23 '05 #4

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

Similar topics

0
2407
by: Tom Dacon | last post by:
"Open .Net Command Window Here" context menu for Windows Explorer: The reg file described below adds a new menu item to Windows Explorer's context menu when you right-click over a folder (or the...
4
7465
by: Brett | last post by:
I have recently purchased Visual C++ . Net compiler and i am trying to compile a project that i had working in Visual C++ 6.0. When I compile, I am receiving the warning: cl : Command line...
2
3957
by: paul | last post by:
I have a file type that is going to be associated with my visual basic application and i want the user to be able to double click on a file of said type and have it launch the program and load the...
3
1945
by: michael | last post by:
Hi, I am trying to write an ASP.NET web app, in Visual Basic.NET, using Visual Studio.NET 2004, .NET framework 1.1.4322 SP1 Running the project/app on localhost while in dev/write/debug stage ...
5
1200
by: Martijn Mulder | last post by:
Does Microsoft Visual C# 2005 Express Edition support command line programming the way Microsoft Visual C++ 2005 Express Edition does? (thumbs up for that)
3
4563
by: Tom Baxter | last post by:
I just set up VS 2008 B2 and did a simple command line compile from the VS command prompt. I received this warning: warning CS1668: Invalid search path 'C:\Program Files\Microsoft...
7
9330
by: Jwe | last post by:
Hi, I've written a program which has both a command line interface and Windows form interface, however it isn't quite working correctly. When run from command line with no arguments it should...
1
4787
by: Claire | last post by:
Hi, I'm trying to run mysqldump.exe from my c# application, running on windows vista with visual studio 2005. The following code does not produce the output file. The same line used in a command...
7
3308
by: =?Utf-8?B?bGxldmk=?= | last post by:
Hi there. I have a simple web page ( 1 textbox, 1 label, 1 button). The page runs under IIS, but it takes at least a minute before it allows me to enter keystrokes after pressing ctl+f5....
0
7039
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7037
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
7080
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
6895
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
5326
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
4770
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
4476
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...
0
1296
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
176
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.