]> git.sesse.net Git - stockfish/commit - src/search.cpp
Use common_parent_position hint also at PVNodes TT hits.
authorpb00067 <pb00067@phxl0401.wp.lan>
Sun, 26 Feb 2023 08:59:35 +0000 (09:59 +0100)
committerJoost VandeVondele <Joost.VandeVondele@gmail.com>
Mon, 27 Feb 2023 07:27:26 +0000 (08:27 +0100)
commit728b963614a765f5cb64c44a078169cca977750f
tree8e7eb180b09bc54eeb67aa6af3eae9c100b85a7a
parent98dafda6c8d432924821d085fd958c89bc8834c3
Use common_parent_position hint also at PVNodes TT hits.

Credits to Stefan Geschwentner (locutus2) showing that the hint
is useful on PvNodes. In contrast to his test,
this version avoids to use the hint when in check.
I believe checking positions aren't good candidates for the hint
because:
- evasion moves are rather few, so a checking pos. has much less childs
than a normal position
- if the king has to move the NNUE eval can't use incremental updates,
  so the child nodes have to do a full refresh anyway.

Passed STC:
https://tests.stockfishchess.org/tests/view/63f9c5b1e74a12625bcdf585
LLR: 2.95 (-2.94,2.94) <0.00,2.00>
Total: 124472 W: 33268 L: 32846 D: 58358
Ptnml(0-2): 350, 12986, 35170, 13352, 378

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

no functional change
src/search.cpp