Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: general programming question

Author: Vincent Vega

Date: 05:22:46 06/20/01

Go up one level in this thread


On June 20, 2001 at 06:16:50, JW de Kort wrote:

>Hi
>
>I'am about to go through my whole program to make the code more efficient. Are
>their books or internet sites about this topic? In other words were can i find
>material on efficient programming. (I use the language C).
>
>Thanxx.
>
>Jan Willem

Just a couple warnings - premature optimization can have a rather negative
effect on the readability of your code and your ability to easily make changes.
Do not attempt to optimize the whole program, use a profiler (Intel's good) to
identify the bottlenecks and take care of them first.  Watch out for older
optimization techniques - many of them can actually make your program slower on
today hardware and with new compilers.  And of course better algorithms are
always preferable to just tweaking the code.



This page took 0 seconds to execute

Last modified: Thu, 15 Apr 21 08:11:13 -0700

Current Computer Chess Club Forums at Talkchess. This site by Sean Mintz.