Skip to content

Commit

Permalink
Speed up picking of killers
Browse files Browse the repository at this point in the history
Changing the order of the conditions gives
about 1% speed up!

No functional change.
  • Loading branch information
mcostalba committed Apr 25, 2014
1 parent 3705559 commit 7ddbcf7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/movepick.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -328,8 +328,8 @@ Move MovePicker::next_move<false>() {
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;
Expand Down

0 comments on commit 7ddbcf7

Please sign in to comment.