mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-19 16:46:30 +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:
|
||||
move = (cur++)->move;
|
||||
if ( move != MOVE_NONE
|
||||
&& pos.pseudo_legal(move)
|
||||
&& move != ttMove
|
||||
&& pos.pseudo_legal(move)
|
||||
&& !pos.capture(move))
|
||||
return move;
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user