mirror of
https://github.com/official-stockfish/Stockfish.git
synced 2026-07-23 05:07:14 +00:00
Optimize order of a few conditions in search
Also fix size of KingDanger array to reduce memory footprint. Small speed up of around 0.5% No functional change.
This commit is contained in:
+4
-4
@@ -725,8 +725,8 @@ namespace {
|
||||
// Step 6. Razoring (skipped when in check)
|
||||
if ( !PvNode
|
||||
&& depth < 4 * ONE_PLY
|
||||
&& eval + razor_margin[depth / ONE_PLY] <= alpha
|
||||
&& ttMove == MOVE_NONE)
|
||||
&& ttMove == MOVE_NONE
|
||||
&& eval + razor_margin[depth / ONE_PLY] <= alpha)
|
||||
{
|
||||
if ( depth <= ONE_PLY
|
||||
&& eval + razor_margin[3 * ONE_PLY] <= alpha)
|
||||
@@ -924,8 +924,8 @@ moves_loop: // When in check search starts from here
|
||||
&& !captureOrPromotion
|
||||
&& !inCheck
|
||||
&& !givesCheck
|
||||
&& !pos.advanced_pawn_push(move)
|
||||
&& bestValue > VALUE_MATED_IN_MAX_PLY)
|
||||
&& bestValue > VALUE_MATED_IN_MAX_PLY
|
||||
&& !pos.advanced_pawn_push(move))
|
||||
{
|
||||
// Move count based pruning
|
||||
if (moveCountPruning)
|
||||
|
||||
Reference in New Issue
Block a user