Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: Do Log files hurt engine performance?

Author: José Carlos

Date: 17:26:44 07/26/04

Go up one level in this thread


On July 26, 2004 at 19:55:01, Russell Reagan wrote:

>On July 26, 2004 at 12:30:19, Scott Gasch wrote:
>
>>On July 26, 2004 at 07:22:31, Norm Pollock wrote:
>>
>>>I wondering if it pays to turn off log files in order to enhance performance?
>>>Has anyone ever looked into this?
>>>
>>>Turning off log files for cm9k and cm10k, which I use in the fritz8 gui,
>>>indicates that this might be the case. But my data is too small to draw any
>>>conclusion.
>>
>>One caveat, though.  Make sure you don't call fflush or setbuf(NULL) on the file
>>descriptors -- i.e. let the CRT buffer your writes.
>>
>>Scott
>
>Is that always a good idea? If you are logging a fatal error (i.e. the program
>is about to crash), I think you better log it and flush the buffer immediately.
>It wouldn't be much help if the program keeps crashing but there is nothing in
>your error log.

  Yes, I agree. I had that problem some time ago. I setbuf(NULL) then and I
haven't noticed any performance loss (though I have not made strict
measurements).

  José C.



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.