Skip to content

Commit

Permalink
Prefetch TT entries in probcut
Browse files Browse the repository at this point in the history
Passed STC:
LLR: 2.93 (-2.94,2.94) <0.00,2.00>
Total: 101344 W: 25893 L: 25491 D: 49960
Ptnml(0-2): 303, 11350, 26991, 11698, 330
https://tests.stockfishchess.org/tests/view/6540daa6cc309ae83956669b

slight speedup:
```
Result of 100 runs
==================
base (./stockfish.master       ) =    1170705  +/- 3133
test (./stockfish.patch        ) =    1174545  +/- 2895
diff                             =      +3841  +/- 3196

speedup        = +0.0033
P(speedup > 0) =  0.9907
```

closes #4856

No functional change
  • Loading branch information
cj5716 authored and vondele committed Nov 3, 2023
1 parent 908811c commit e277dda
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/search.cpp
Expand Up @@ -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
Expand Down

0 comments on commit e277dda

Please sign in to comment.