mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-19 16:46:30 +08:00
Reduce lock contention in sp_search_pv()
In less then 1% of cases value > sp->bestValue, so avoid an useless lock in the common case. This is the same change already applied to sp_search(). Also SplitPoint futilityValue is not volatile because never changes after has been assigned in split() No functional change. Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
@@ -51,7 +51,8 @@ struct SplitPoint {
|
||||
SearchStack *parentSstack;
|
||||
int ply;
|
||||
Depth depth;
|
||||
volatile Value alpha, beta, bestValue, futilityValue;
|
||||
volatile Value alpha, beta, bestValue;
|
||||
Value futilityValue;
|
||||
bool pvNode;
|
||||
int master, slaves[THREAD_MAX];
|
||||
Lock lock;
|
||||
|
||||
Reference in New Issue
Block a user