]> git.sesse.net Git - stockfish/blobdiff - src/search.cpp
Prefetch TT entries in probcut
[stockfish] / src / search.cpp
index daab1eb1770c080bb597bf30c063c84788377b78..6e719be82f4a719a7c9810c5ea3907967c8cf2f8 100644 (file)
@@ -869,6 +869,9 @@ Value search(Position& pos, Stack* ss, Value alpha, Value beta, Depth depth, boo
             {
                 assert(pos.capture_stage(move));
 
+                // Prefetch the TT entry for the resulting position
+                prefetch(TT.first_entry(pos.key_after(move)));
+
                 ss->currentMove = move;
                 ss->continuationHistory =
                   &thisThread