🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.chess
Article #2104

Re: hash tables

#2104
From: Simon Waters
Date: Sat, 05 May 2001 14:36
25 lines
2164 bytes
Dan Oetting wrote:
> 
> GNU Chess 5 has two hash tables. One for general evaluations and the
> other for pawn evaluations. The available ram needs to be divided
> between the two tables but the optimum split needs to be determined by
> experimentation.

I've experimented a fair bit. Generally make the normal hash
as large as possible. 

Since in Gnuchess the hash table has to be a power of 2, you
usually get an odd sized chunk to fill up with Pawn hash.

IIRC (check the source) the hash table can be configured at
the command, but not the pawn hash (or was that fixed in
5.02?), so edit the header file...

32Mb of RAM - Hmm - this would be cheap to change and make
the average PC much more usable.

Since GNU chess uses the same pseudo random hash codes
everytime it is run, you can make the pawn hash table
permanent by saving it to disk. Alas the other hash table is
cleared between moves, but simply stopping the reset seems
to cause problems I never completely understood.
Technical Details
Message-ID: <3AF40FEC.447D89D9@wretched.demon.co.uk>
Path: arc1-ca.pugleaf.net!newsfeed.google.com!newsfeed.stanford.edu!news.tele.dk!212.74.64.35!colt.net!dispose.news.demon.net!news.demon.co.uk!demon!wretched.demon.co.uk!not-for-mail
References: <vmNI6.1503$Ur6.160287@newsread2.prod.itd.earthlink.net> <dan_oetting-33F2C4.08172305052001@news.dnvr.uswest.net>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10d71d,5c8f19b31340fcfb
X-Google-Attributes: gid10d71d,public
X-Google-ArrivalTime: 2001-05-05 07:35:02 PST
Path: arc1-ca.pugleaf.net!newsfeed.google.com!newsfeed.stanford.edu!news.tele.dk!212.74.64.35!colt.net!dispose.news.demon.net!news.demon.co.uk!demon!wretched.demon.co.uk!not-for-mail
From: Simon Waters <Simon@wretched.demon.co.uk>
Newsgroups: gnu.chess
Subject: Re: hash tables
Date: Sat, 05 May 2001 15:36:28 +0100
Organization: Eighth Layer Limited
Message-ID: <3AF40FEC.447D89D9@wretched.demon.co.uk>
References: <vmNI6.1503$Ur6.160287@newsread2.prod.itd.earthlink.net> <dan_oetting-33F2C4.08172305052001@news.dnvr.uswest.net>
Reply-To: Simon@wretched.demon.co.uk
NNTP-Posting-Host: wretched.demon.co.uk
X-NNTP-Posting-Host: wretched.demon.co.uk:193.237.109.203
X-Trace: news.demon.co.uk 989073288 nnrp-08:422 NO-IDENT wretched.demon.co.uk:193.237.109.203
X-Complaints-To: abuse@demon.net
X-Mailer: Mozilla 4.61 [en] (X11; I; Linux 2.2.17 i686)
X-Accept-Language: en-GB, en-US, en
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Lines: 25