small stockfish request.
Moderator: Ras
-
jwes
- Posts: 778
- Joined: Sat Jul 01, 2006 7:11 am
small stockfish request.
Could output to searchlog.txt be followed by a flush()? I was playing with stockfish and after a crash, I was hoping to get some clues from the log but it was truncated. It should not affect performance since if you want that last ounce of performance you will have the log disabled.
-
mcostalba
- Posts: 2684
- Joined: Sat Jun 14, 2008 9:17 pm
Re: small stockfish request.
Well in C++ putting at the end "<< std::endl" should guarantee that string buffer is flushed.jwes wrote:Could output to searchlog.txt be followed by a flush()? I was playing with stockfish and after a crash, I was hoping to get some clues from the log but it was truncated. It should not affect performance since if you want that last ounce of performance you will have the log disabled.
I mean from the application, not from the OS to the disk. The latter is OS dependant I guess.
-
wgarvin
- Posts: 838
- Joined: Thu Jul 05, 2007 5:03 pm
- Location: British Columbia, Canada
Re: small stockfish request.
That is sufficient to make sure you get everything that stockfish wrote before it crashed.mcostalba wrote:Well in C++ putting at the end "<< std::endl" should guarantee that string buffer is flushed.jwes wrote:Could output to searchlog.txt be followed by a flush()? I was playing with stockfish and after a crash, I was hoping to get some clues from the log but it was truncated. It should not affect performance since if you want that last ounce of performance you will have the log disabled.
I mean from the application, not from the OS to the disk. The latter is OS dependant I guess.
It would only be insufficient if the whole machine crashed.