Reduce SMP contention on TT

Move TT object away from heavy write accessed NodesSincePoll
and also, inside TT isolate the heavy accessed writes variable.

No functional change.

Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
Marco Costalba
2009-06-13 11:13:09 +01:00
parent 8bec65029d
commit 630fda2e2c
2 changed files with 10 additions and 4 deletions

View File

@@ -189,6 +189,9 @@ namespace {
// Remaining depth: 1 ply 1.5 ply 2 ply 2.5 ply 3 ply 3.5 ply
const Value RazorApprMargins[6] = { Value(0x520), Value(0x300), Value(0x300), Value(0x300), Value(0x300), Value(0x300) };
// The main transposition table
TranspositionTable TT;
/// Variables initialized by UCI options
@@ -268,9 +271,6 @@ namespace {
int NodesSincePoll;
int NodesBetweenPolls = 30000;
// The main transposition table
TranspositionTable TT;
/// Functions