]> git.sesse.net Git - stockfish/commit
Remove per thread instances of Endgames. (#2056)
authormstembera <m_stembera@yahoo.com>
Wed, 15 May 2019 08:41:58 +0000 (01:41 -0700)
committerMarco Costalba <mcostalba@users.noreply.github.com>
Wed, 15 May 2019 08:41:58 +0000 (10:41 +0200)
commit4a7b8180ecaef7d164fa53a1d545372df1173596
treebed2b75ee910548ba648355263044844ce2435f6
parent44c320a572188b5875291103edb344c584b91d19
Remove per thread instances of Endgames. (#2056)

Similar to PSQT we only need one instance of the Endgames resource. The current per thread copies are identical and read only(after initialization) so from a design point of view it doesn't make sense to have them.

Tested for no slowdown.
http://tests.stockfishchess.org/tests/view/5c94377a0ebc5925cfff43ca
LLR: 2.95 (-2.94,2.94) [-3.00,1.00]
Total: 17320 W: 3487 L: 3359 D: 10474

No functional change.
src/endgame.cpp
src/endgame.h
src/main.cpp
src/material.cpp
src/thread.h