mirror of
https://github.com/opelly27/Stockfish.git
synced 2026-05-20 10:57:43 +00:00
Improve thread voting inefficiencies
Initialize the unordered map to a reasonable number of buckets and make the move hashes well distributed. For more see https://github.com/official-stockfish/Stockfish/pull/4958#issuecomment-1937351190 Also make bestThreadPV and newThreadPV references so we don't copy entire vectors. closes https://github.com/official-stockfish/Stockfish/pull/5048 No functional change
This commit is contained in:
+1
-1
@@ -397,7 +397,7 @@ class Move {
|
||||
constexpr std::uint16_t raw() const { return data; }
|
||||
|
||||
struct MoveHash {
|
||||
std::size_t operator()(const Move& m) const { return m.data; }
|
||||
std::size_t operator()(const Move& m) const { return make_key(m.data); }
|
||||
};
|
||||
|
||||
protected:
|
||||
|
||||
Reference in New Issue
Block a user