Computer Chess Club Archives


Search

Terms

Messages

Subject: question about Crafty's organization of files

Author: Uri Blass

Date: 15:44:13 12/15/03


Is there a special reason that HashStorePV is in hash.c and not on a seperate
file?

I understand that hashstorePV is called only from iterate.c or in other words
almost never when other functions called often in the search.

I understand that it is better to put functions that are called rarely in
seperate files so I think that it may be better to have a seperate file for
the function HashStorePV or to have HashStorePV in iterate.c

Note that I learned from Crafty to have a special file for iterate.c and the
number of files in movei is increasing(now I have 15 files).

It was not a trivial part that I could solve by one cut and paste because I goto
in my iterate.c(similiar to tscp) and I have the same goto also during pondering
if I get a move so I had to copy also part of the functions that handle winboard
commands to my iterate.c but fortunately these functions are rarely used so I
guess it is also an advantage to have them on a seperate file.


It helped me to get a small speed improvement of almost 2%

Uri



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.