Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: Design choices in Crafty

Author: Robert Hyatt

Date: 20:05:53 06/23/04

Go up one level in this thread


On June 23, 2004 at 19:52:45, Ed Trice wrote:

>On June 23, 2004 at 18:30:57, Russell Reagan wrote:
>
>>I am curious about a few design choices in Crafty. Some of the questions are
>>general questions that anyone who is knowledgable could answer, so I ask this
>>publicly instead of via email to Dr. Hyatt.
>>
>>First issue. Crafty is written with a lot of color-specific code, like:
>>
>>if (wtm) {
>>    // ...
>>}
>>else {
>>    // ...
>>}
>>
>
>If you profile Crafty, you will find something like only 11% of the computation
>is spent on the evaluation routine. Say you were to make this code execute twice
>as fast. Then, overall, the entire program would be only 5.5% faster.

Actually about 50% of total time is spent there.  You have to include leaf
functions like EvaluatePawns() and so forth to get the true picture...

>
>To make a big performance gain, you have to attack the bottlenecks.



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.