deep-position-analysis icon indicating copy to clipboard operation
deep-position-analysis copied to clipboard

Writing analysis output...

Open hentheor opened this issue 4 years ago • 1 comments

Hello,

When analyzing a pos in really higher depths (>30plies) writing final analysis from memory to a file can be extremely time consuming.

Case study Some trivial rook ending: 3 connected pwns vs 3 isolated - long mating variations for Black Starting FEN "8/8/5k2/2PR1ppp/8/2r1PK1P/8/8 b - - 0 56" (Best move f4)

dpa.py -p ./stockfish -d 24 -c ./sf.cfg --depth 30 --pv 10W3B -k 350W60B --threshold 25B g.pgn (Using: 30 Threads & 16G mem) ...................................... Completed position analysis 1 of 1 from g.pgn in 2 hours 27 minutes 47 seconds. Saving result.

Saving took ~5h (for ~26M output)!!!

Can this procedure be optimized?

Thank you M.N.

hentheor avatar Sep 03 '20 13:09 hentheor

Sorry for only noticing this now. Somehow no notifications popped up in my feed...

I will try to take look at your issue this week. I think it can be easily optimized but I could be wrong.

Thank you for submitting an issue !

zeFresk avatar Sep 27 '20 16:09 zeFresk