Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: Does this position blow up your program? 2

Author: Uri Blass

Date: 02:15:38 12/26/02

Go up one level in this thread


On December 26, 2002 at 04:53:12, Russell Reagan wrote:

>Why did you spend the time to optimize perft?

I am already the fastest in perft and I wanted to be even faster and I decided
that if it is not a lot of work I am going to do it.

optimizing perft was easy

There are commands that are not needed for calculating perft like calculating
scores for order of moves so I added

#define GAME 2

and for things that I do not need I added
#if GAME==1
...
#endif

If I want to play I change  my code to #define GAME 1

#define GAME 2 gives me warnings but I do not care about them.

The default version has #define GAME 1

I can add #if GAME==1 in more places and I did not add it in all the places that
I can do it.

The default version can be used for debugging the move generator and after
changing one line it can be used for calculating perft faster.

I do not like to be slower in perft and I plan to do changes that may make movei
slower in perft with the default version so I am going to add in more places
#if GAME==1
...
#endif

The special version that I used had only 2 and I can add more to do perft even
faster.

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.