]> git.sesse.net Git - stockfish/commit
Remove sorting optimization for many zeroes
authorMarco Costalba <mcostalba@gmail.com>
Fri, 5 Feb 2010 16:37:33 +0000 (17:37 +0100)
committerMarco Costalba <mcostalba@gmail.com>
Fri, 5 Feb 2010 17:04:08 +0000 (18:04 +0100)
commitb0858877aeb0fc077526b04ef11a811b5b5b9e12
tree15341eb0704e006715059b0ff00c77bd54d54316
parent321f6d1d1979d55862ad907fb3fa761b9c35872c
Remove sorting optimization for many zeroes

With negative history we don't have anymore a
lot of zeroes to score, so just split moves in
positives and non-positives sets.

Speed up is almost zero, we cannot test speed directly
because node count changed due to reorder, but I have
verified sorting is correct. With a profiler I have
seen we gain a little in sort_moves() and lose a little
in insertion_sort(), so the net effect is almost zero,
but code is simpler.

No real change, just move reordering.

Signed-off-by: Marco Costalba <mcostalba@gmail.com>
src/move.h