From 08c464c690e62b874b7d9b34dfabf455820153d6 Mon Sep 17 00:00:00 2001 From: Marco Costalba Date: Mon, 11 Apr 2011 15:33:35 +0200 Subject: [PATCH] Increase MaterialTableSize 8 times Now that we prefetch in material hash table we can increase its size and gain something. Hit rate is now of 98% from 92% Speedup of 0.8% No functional change. Signed-off-by: Marco Costalba --- src/material.cpp | 2 +- src/material.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/material.cpp b/src/material.cpp index f5e4a3b9..31550720 100644 --- a/src/material.cpp +++ b/src/material.cpp @@ -32,7 +32,7 @@ namespace { const Value EndgameLimit = Value(3998); // Scale factors used when one side has no more pawns - const int NoPawnsSF[4] = { 6, 12, 32 }; + const uint8_t NoPawnsSF[4] = { 6, 12, 32 }; // Polynomial material balance parameters const Value RedundantQueenPenalty = Value(320); diff --git a/src/material.h b/src/material.h index 1a5f1105..08752572 100644 --- a/src/material.h +++ b/src/material.h @@ -25,7 +25,7 @@ #include "tt.h" #include "types.h" -const int MaterialTableSize = 1024; +const int MaterialTableSize = 8192; /// MaterialInfo is a class which contains various information about a /// material configuration. It contains a material balance evaluation, -- 2.39.2