]> git.sesse.net Git - stockfish/commitdiff
Never clear stats
authorlucasart <lucas.braesch@gmail.com>
Tue, 5 May 2015 11:10:19 +0000 (19:10 +0800)
committerlucasart <lucas.braesch@gmail.com>
Wed, 6 May 2015 11:17:33 +0000 (19:17 +0800)
Based on an idea and patch by VoyagerOne.

Small simplification, but was tedted for an ELO gain anyway.

STC:
LLR: 2.95 (-2.94,2.94) [-1.00,4.00]
Total: 5375 W: 1119 L: 977 D: 3279

LTC:
LLR: 2.95 (-2.94,2.94) [0.00,5.00]
Total: 17893 W: 2984 L: 2792 D: 12117

bench 8322847

src/movepick.h
src/search.cpp

index 44fc51f6263d73ca5a88919ff044e3e6b256cc12..423a6a1805e34a233844024940bd8d66839fb74b 100644 (file)
@@ -21,7 +21,6 @@
 #define MOVEPICK_H_INCLUDED
 
 #include <algorithm> // For std::max
-#include <cstring>   // For std::memset
 
 #include "movegen.h"
 #include "position.h"
@@ -44,7 +43,6 @@ struct Stats {
 
   const T* operator[](Piece pc) const { return table[pc]; }
   T* operator[](Piece pc) { return table[pc]; }
-  void clear() { std::memset(table, 0, sizeof(table)); }
 
   void update(Piece pc, Square to, Move m) {
 
index 18e0cb95af9abaa1cb15a03d7ae173fdeb3f87fc..9c7190bed0cacb99e7d813df7196e205cb23bac8 100644 (file)
@@ -339,10 +339,6 @@ namespace {
     beta = VALUE_INFINITE;
 
     TT.new_search();
-    History.clear();
-    CounterMovesHistory.clear();
-    Gains.clear();
-    Countermoves.clear();
 
     size_t multiPV = Options["MultiPV"];
     Skill skill(Options["Skill Level"]);