Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: Chess engine speed up tricks

Author: Dann Corbit

Date: 16:33:12 02/15/05

Go up one level in this thread


On February 15, 2005 at 12:44:10, Pallav Nawani wrote:

>On February 15, 2005 at 12:32:37, Dann Corbit wrote:
>
>>On February 15, 2005 at 12:26:36, Pallav Nawani wrote:
>>
>>>Hi,
>>>
>>>My chess engine, Natwarlal is very slow, getting 350KNPS on an Athlon 1700.
>>>Crafty, on the other hand does an hefty 650K. What is the most important thing
>>>for high NPS of the engine? There are a few speedup tricks that I know, and I am
>>>not using them, but can anyone quantify the speedup in % provided by these,
>>>and/or add some  new ideas?
>>>
>>>1. Pawn hash (Natwarlal uses it, but not efficiently).
>>>2. King hash
>>>3. Eval cache
>>>4. Lazy eval. Natwarlal dosen't use this, but then Natwarlal's eval is very
>>>skimpy already!
>>>5. Any other trick?
>>>
>>>Thanks,
>>>Pallav
>>
>>Profile your program and find out where the time is going.
>>
>>The way to speed up your program is to identify the slow spots.
>
>That's the problem.
>I try to profile it with gprof and it hangs after 4 ply :(
>That's an improvement from before, when it used to crash almost immediately :)

When I find some time, I will run a profile for you.

The Intel profiler is (by a landslide) the best around.




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.