Skip draw by repetition check in qsearch

Cut in half the time spent in pos.draw() that accounts
for a whopping 1% of total time !

Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
Marco Costalba
2011-06-04 11:29:54 +01:00
parent 91407f4f74
commit 3b2bcee0a8
3 changed files with 13 additions and 8 deletions

View File

@@ -228,7 +228,7 @@ public:
// Game termination checks
bool is_mate() const;
bool is_draw() const;
template<bool SkipRepetition> bool is_draw() const;
// Number of plies from starting position
int startpos_ply_counter() const;