]> git.sesse.net Git - stockfish/commit
Pre-initialize ss->ply
authorJ. Oster <osterj165@googlemail.com>
Mon, 31 May 2021 15:46:40 +0000 (17:46 +0200)
committerStéphane Nicolet <cassio@free.fr>
Tue, 1 Jun 2021 19:25:28 +0000 (21:25 +0200)
commit9fd5b44d60c53357bb76d4c51f20d3d5aa31ebe3
treec0f591fb0af63601fa6d00ef9b45bdef10d21327
parente8418bb1b92800550264b9a4993f51208f8fe681
Pre-initialize ss->ply

We pre-initialize ss->ply over the whole stack. There is no need
to re-assign the same value(s) over and over again while searching.
Probably a tiny speedup on longer searches.

Tested for no regression:

STC
LLR: 2.93 (-2.94,2.94) <-2.50,0.50>
Total: 25784 W: 2205 L: 2101 D: 21478
Ptnml(0-2): 62, 1660, 9368, 1716, 86
https://tests.stockfishchess.org/tests/view/60b516c6457376eb8bca9dfa

LTC
LLR: 2.94 (-2.94,2.94) <-2.50,0.50>
Total: 26200 W: 944 L: 878 D: 24378
Ptnml(0-2): 12, 732, 11545, 800, 11
https://tests.stockfishchess.org/tests/view/60b53652457376eb8bca9e0e

closes https://github.com/official-stockfish/Stockfish/pull/3516

No functional change.
src/search.cpp