Memory Speed Problem

P

Peter Olcott

I am accessing a dynamic array in windows and through the command prompt. I can search the entire array through the command prompt
in about 3 milliseconds, running the exact same code in MS Windows XP it takes 140 Milliseconds. What is up with this? What can I do
to improve the performance in Windows?
 
I

Ian

Peter said:
I am accessing a dynamic array in windows and through the command prompt. I can search the entire array through the command prompt
in about 3 milliseconds, running the exact same code in MS Windows XP it takes 140 Milliseconds. What is up with this? What can I do
to improve the performance in Windows?
Buy a faster machine? Or ask on a more appropriate NG.

Ian
 
P

Peter Olcott

Ian said:
Buy a faster machine? Or ask on a more appropriate NG.

Ian
It was a hundred-fold slower than it was supposed to be.
Merely a compiler switch had set optimize to none, changed
it to optimize for speed, all fixed!
 
I

Ian

Peter said:
It was a hundred-fold slower than it was supposed to be.
Merely a compiler switch had set optimize to none, changed
it to optimize for speed, all fixed!
The bitter the problem, the smaller the cause :)

When things go horribly wrong, look for a simple fix.

Ian
 
D

divya_rathore_

Peter said:
It was a hundred-fold slower than it was supposed to be.
Merely a compiler switch had set optimize to none, changed
it to optimize for speed, all fixed!

As defaults, Debug version of MFC Apps in vc6.0 are set for No
optimization and Release versions are set for 'Maximize speed'.

regards,
- D. Rathore
*remove all underscores for email ID*
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,581
Members
45,056
Latest member
GlycogenSupporthealth

Latest Threads

Top