]> git.sesse.net Git - stockfish/commit
Speedup moves root list sorting
authorMarco Costalba <mcostalba@gmail.com>
Mon, 27 Dec 2010 12:29:52 +0000 (13:29 +0100)
committerMarco Costalba <mcostalba@gmail.com>
Mon, 27 Dec 2010 12:55:34 +0000 (13:55 +0100)
commit30c14fdc9532fc94217eba708653a188a9b24504
treec2d9bc3a36e42b259bb9a44e1925c702e3f4ff6c
parente8b5420300cd8c9079269e2192c73ef6a15a514b
Speedup moves root list sorting

Instead of a default member by member copy use set_pv()
to copy the useful part of pv[] array and skip the remaining.

This greatly speeds up sorting of root move list !

No functional change.

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