Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: Do Log files hurt engine performance?

Author: Russell Reagan

Date: 16:55:01 07/26/04

Go up one level in this thread


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.



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.