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) |
From: | "Scott McPhillips \[MVP\]" <scottmcp@mvps.org> |
Newsgroups: | comp.os.ms-windows.programmer.win32,comp.compilers |
Date: | 23 Sep 2003 13:29:41 -0400 |
Organization: | McPhillips Designs |
References: | 03-09-070 |
Keywords: | optimize |
Posted-Date: | 23 Sep 2003 13:29:41 EDT |
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.
Programs usually spend 90% of their time in 10% of the code. Broad
strategies such as you list are not likely to help much unless you get
lucky. A better approach is to diagnose where most of the time is
spent and concentrate very hard on that portion. The most dramatic
improvements will be found with improved algorithms in the hot spots,
not with compiler settings.
--
Scott McPhillips [VC++ MVP]
Return to the
comp.compilers page.
Search the
comp.compilers archives again.