]> git.sesse.net Git - stockfish/commit
Movepicker: take move's loop out of switch statement
authorMarco Costalba <mcostalba@gmail.com>
Sun, 30 Aug 2009 08:42:55 +0000 (09:42 +0100)
committerMarco Costalba <mcostalba@gmail.com>
Sun, 30 Aug 2009 19:10:08 +0000 (20:10 +0100)
commit607ac0687a53c764ad548932d35e651c540f4764
treeb48a8a0688ff2f0853ae2a87afedc63cb67a4ecb
parente9de96f0e417dc706882b645d14dbf41e7ccc467
Movepicker: take move's loop out of switch statement

This not only cleans up the code but gives another
speed boost of 1.8%

From revision 595a90dfd0 we have increased pgo compiled binary
speed of a whopping +5.2% without any functional change !!

This is really awsome considering that we have also
cut line count by 25 lines.

Sometime we spend days for getting an extra 1% from move
generation while instead the biggest optimizations come
from anonymous and apparently dull parts of the code.

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