From 7ddbcf7e87a0b0c882d8d33841bd7ae53969619d Mon Sep 17 00:00:00 2001 From: Marco Costalba Date: Fri, 25 Apr 2014 12:53:51 +0200 Subject: [PATCH] Speed up picking of killers Changing the order of the conditions gives about 1% speed up! No functional change. --- src/movepick.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/movepick.cpp b/src/movepick.cpp index 0c61c30c07e..3f0837d94db 100644 --- a/src/movepick.cpp +++ b/src/movepick.cpp @@ -328,8 +328,8 @@ Move MovePicker::next_move() { case KILLERS_S1: move = (cur++)->move; if ( move != MOVE_NONE - && pos.pseudo_legal(move) && move != ttMove + && pos.pseudo_legal(move) && !pos.capture(move)) return move; break;