mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-20 09:06:45 +08:00
Speed up picking of killers
Changing the order of the conditions gives about 1% speed up! No functional change.
This commit is contained in:
@@ -328,8 +328,8 @@ Move MovePicker::next_move<false>() {
|
|||||||
case KILLERS_S1:
|
case KILLERS_S1:
|
||||||
move = (cur++)->move;
|
move = (cur++)->move;
|
||||||
if ( move != MOVE_NONE
|
if ( move != MOVE_NONE
|
||||||
&& pos.pseudo_legal(move)
|
|
||||||
&& move != ttMove
|
&& move != ttMove
|
||||||
|
&& pos.pseudo_legal(move)
|
||||||
&& !pos.capture(move))
|
&& !pos.capture(move))
|
||||||
return move;
|
return move;
|
||||||
break;
|
break;
|
||||||
|
|||||||
Reference in New Issue
Block a user