Author: Severi Salminen
Date: 03:38:07 12/05/01
Go up one level in this thread
>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
As Sune said it is (too) common to see huge performance fluctuations when there
should be none. I think you should definitely use side instead of color(sq). You
will see the performance gain probably later when you alter your code. I use
Visual C++ 6.0 and it is very easy to get 5% speed up or slow down just be
adding a printf() somewhere in code...
Severi
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.