Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: about SEE of Crafty

Author: Bas Hamstra

Date: 16:04:26 01/05/04

Go up one level in this thread


On January 05, 2004 at 16:39:04, Uri Blass wrote:

>I see that crafty is using swap_list[32] and I think that the array is too long.
>
>There are only 8 queen directions and 8 knight directions and I think that for
>practical cases swap_list[16] can make Crafty faster with no problems(in theory
>it is possible that 16 is not enough but I do not imagine a practical case when
>it can happen.
>
>I wonder if it is not better to have swap_list[16] in Crafty and add
>if (nc==15) break if you want to be careful not to crash maybe in 1 out of 1000
>games.
>
>It seems to me that the price of allocating memory to 16 integer is higher than
>the price of one if (nc==15) inside the loop.

It doesn't matter, it is not a performance issue. Most of the ticks are in
fetching the attacks/xrays and manipulating bitboards (and getting the last bit
especially on AMD). Compared to that setting up 16 less chars is peanuts.

Bas.






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.