Author: Tony Werten
Date: 22:37:20 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 :) Use AMD's code analyst. (works also on intel). It's easy understandable (use and interpretation of results) and runs your program at full speed. Run it for a minute and you have a good idea where most time is spend. Also handy as debug tool when you see your program spending a lot of time where it shouldn't. Tony
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.