Author: Lieven Clarisse
Date: 08:50:58 01/01/03
I was wondering if there is a good book about how to write efficient C code. I
am not talking about algorithms, but the way *how* to write things, eg
which is faster :
do {} while() or while () {}
-------
I know for instance that:
ptr=&R[i];
if((*ptr==3)||(*ptr==7)) {;}
is faster then:
if((R[i]==3)||(R[i]==7)) {;}
Is there a good book that reviews all those kinds of tricks?
regards,
Lieven
This page took 0.02 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.