Re: optimizing c++ code (on win32 platform)

llewelly@xmission.com
27 Sep 2003 13:49:05 -0400

          From comp.compilers

Related articles
optimizing c++ code (on win32 platform), all the techniques you know? tzuchien_chiu@xgitech.com (Tzu-Chien Chiu) (2003-09-22)
Re: optimizing c++ code (on win32 platform) scottmcp@mvps.org (Scott McPhillips \[MVP\]) (2003-09-23)
Re: optimizing c++ code (on win32 platform) jussij@zeusedit.com (Jussi Jumppanen) (2003-09-23)
Re: optimizing c++ code (on win32 platform) llewelly@xmission.com (2003-09-27)
Re: optimizing c++ code (on win32 platform) o.wesnigk@t-online.de (Oliver Wesnigk) (2003-09-27)
Re: optimizing c++ code (on win32 platform) vbdis@aol.com (2003-09-27)
Re: optimizing c++ code (on win32 platform) Brian.Inglis@SystematicSw.ab.ca (Brian Inglis) (2003-10-13)
| List of all articles for this month |

From: llewelly@xmission.com
Newsgroups: comp.lang.c++,comp.os.ms-windows.programmer.win32,comp.compilers
Date: 27 Sep 2003 13:49:05 -0400
Organization: The Illusory Sorting Algorithm
References: 03-09-070 03-09-095
Keywords: optimize, practice
Posted-Date: 27 Sep 2003 13:49:05 EDT

Jussi Jumppanen <jussij@zeusedit.com> writes:


> Tzu-Chien Chiu wrote:
>
> > "What methods do you ever use to optimize the programs?"
> >
> > We're developing a graphics chip emulator in C++, but it's very slow
> > for big scenes. Even though this is a cross-platform software, I only
> > want to optimize it on the Win32 (Windows 2000/XP) platform.
>
> If you application seems very slow on todays super fast GHz PC's, that
> to me that suggests the application it is doing an awful lot of CPU
> intensive stuff.
[snip]


That is usually wrong. I/O speeds are hundres of thousands of times
        slower than cpu speeds. The speed of a system is usually most
        strongly dependent on the speed of its slowest parts. Many more
        programs are I/O bound, and can be very slow even when only using
        1 or 2% of cpu.


Memory-bound and system-call bound progams are also more common than
        cpu-bound progams.


Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.