mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-19 08:36:33 +08:00
Prefetch also material tables
Prefetch both pawn and material tables in do_move() and prefetch always, not only after a pawn move or a capture. Speed up of 0,7% No functional change. Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
@@ -269,16 +269,13 @@ namespace {
|
||||
}
|
||||
|
||||
|
||||
////
|
||||
//// Functions
|
||||
////
|
||||
/// prefetchTables() is called in do_move() to prefetch pawn and material
|
||||
/// hash tables data that will be needed shortly after in evaluation.
|
||||
|
||||
void prefetchTables(Key pKey, Key mKey, int threadID) {
|
||||
|
||||
/// Prefetches in pawn hash tables
|
||||
|
||||
void prefetchPawn(Key key, int threadID) {
|
||||
|
||||
PawnTable[threadID]->prefetch(key);
|
||||
PawnTable[threadID]->prefetch(pKey);
|
||||
MaterialTable[threadID]->prefetch(mKey);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user