Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: question about Crafty's organization of files

Author: Robert Hyatt

Date: 17:43:03 12/15/03

Go up one level in this thread


On December 15, 2003 at 18:44:13, Uri Blass wrote:

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

I try to keep "related" things together.  IE all the hash code is in hash.c,
all the learning stuff is in learn.c, all the evaluation code is in evaluate.c,
etc.


>
>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

It is probably a _very_ minor improvement.  IE .01% in this case...

>
>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.