Doesn't provide useful information and
can cause slowdown with many Threads.
No functional change
Signed-off-by: Marco Costalba <mcostalba@gmail.com>
// Print final search statistics
cout << "info nodes " << TM.nodes_searched()
<< " nps " << nps()
// Print final search statistics
cout << "info nodes " << TM.nodes_searched()
<< " nps " << nps()
- << " time " << current_search_time()
- << " hashfull " << TT.full() << endl;
+ << " time " << current_search_time() << endl;
// Print the best move and the ponder move to the standard output
if (pv[0] == MOVE_NONE)
// Print the best move and the ponder move to the standard output
if (pv[0] == MOVE_NONE)
dbg_print_hit_rate();
cout << "info nodes " << TM.nodes_searched() << " nps " << nps()
dbg_print_hit_rate();
cout << "info nodes " << TM.nodes_searched() << " nps " << nps()
- << " time " << t << " hashfull " << TT.full() << endl;
+ << " time " << t << endl;
}
// Should we stop the search?
}
// Should we stop the search?
#include <cstring>
#include "movegen.h"
#include <cstring>
#include "movegen.h"
TranspositionTable::TranspositionTable() {
TranspositionTable::TranspositionTable() {
entries = 0;
generation = 0;
}
entries = 0;
generation = 0;
}
replace = tte;
}
replace->save(posKey32, v, t, d, m, generation, statV, kingD);
replace = tte;
}
replace->save(posKey32, v, t, d, m, generation, statV, kingD);
/// entries from the current search.
void TranspositionTable::new_search() {
/// entries from the current search.
void TranspositionTable::new_search() {
-
-
-/// TranspositionTable::full() returns the permill of all transposition table
-/// entries which have received at least one overwrite during the current search.
-/// It is used to display the "info hashfull ..." information in UCI.
-
-int TranspositionTable::full() const {
-
- double N = double(size) * ClusterSize;
- return int(1000 * (1 - exp(overwrites * log(1.0 - 1.0/N))));
-}
void new_search();
void insert_pv(const Position& pos, Move pv[]);
void extract_pv(const Position& pos, Move bestMove, Move pv[], const int PLY_MAX);
void new_search();
void insert_pv(const Position& pos, Move pv[]);
void extract_pv(const Position& pos, Move bestMove, Move pv[], const int PLY_MAX);
TTEntry* first_entry(const Key posKey) const;
private:
TTEntry* first_entry(const Key posKey) const;
private:
- // Be sure 'overwrites' is at least one cache line away
- // from read only variables.
- unsigned char pad_before[64 - sizeof(unsigned)];
- unsigned overwrites; // heavy SMP read/write access here
- unsigned char pad_after[64];
-
size_t size;
TTCluster* entries;
uint8_t generation;
size_t size;
TTCluster* entries;
uint8_t generation;