Author: Daniel Clausen
Date: 06:53:21 12/05/01
Go up one level in this thread
Hi
On December 05, 2001 at 05:33:08, Uri Blass wrote:
>In my program I have the following commands when I generate my pin arrays:
>
>if (color(sq)==side)
>{
> pin[sq]=-1;
> d=direction[kingsquare[color(sq)]][sq];
>...
>
>The strange speed demage to my program happens when I try to replace color(sq)
>with side in the last line
[snip]
I suggest that you use whatever makes more sense to you, regardless of the
speed-gain now. It's not unlikely that after your next change somewhere else the
speed difference will be reversed again. Compilers are rather intelligent
programs and w/o seeing more of the source (or even better the assembler code)
there's no way to explain this I guess. (it could have to do with registers,
with cache and whatnot)
Sargon
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.