Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: Performance improvement suggestion for Crafty and some similar programs

Author: Dieter Buerssner

Date: 12:44:23 09/10/03

Go up one level in this thread


On September 10, 2003 at 12:38:17, Steven Edwards wrote:

>A better approach is to use a separate thread to wait efficiently for a constant
>time interval.

It will make the program less portable. For example, I have a DOS version of my
engine. I don't know of any POSIX thread library for this. A polling program can
be very portable. Of course, one needs a few lines of system specific code (at
least in C), to see whether input is available. But that is just about all. All
the core stuff of the engine will need no changes. I also calculate the nodes
between time checks dynamically. In profile runs, it doesn't show up anywhere
near the top - so basically no time is lost.

Regards,
Dieter



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.