Files
Stockfish/src
Marco Costalba 6cf28d4aa7 Change the flow in wich moves are generated and picked
In MovePicker we get the next move with pick_move_from_list(),
then check if the return value is equal to MOVE_NONE and
in this case we update the state to the new phase.

This patch reorders the flow so that now from pick_move_from_list()
renamed get_next_move() we directly call go_next_phase() to
generate and sort the next bunch of moves when there are no more
move to try. This avoids to always check for pick_move_from_list()
returned value and the flow is more linear and natural.

Also use a local variable instead of a pointer dereferencing in a
time critical switch statement in get_next_move()

With this patch alone we have an incredible speed up of 3.2% !!!

No functional change.

Signed-off-by: Marco Costalba <mcostalba@gmail.com>
2009-08-27 19:56:26 +01:00
..
2009-05-07 14:54:40 +02:00
2009-05-07 14:54:40 +02:00
2009-05-07 14:54:40 +02:00
2009-05-07 14:54:40 +02:00
2009-05-07 14:54:40 +02:00
2009-05-10 18:38:47 +01:00
2008-09-01 07:59:13 +02:00
2009-05-20 14:43:17 +02:00
2009-05-07 14:54:40 +02:00
2009-05-20 15:11:41 +02:00
2009-05-20 14:43:17 +02:00
2009-05-20 15:11:41 +02:00
2008-09-24 00:32:53 +02:00
2009-05-07 14:54:40 +02:00
2009-05-10 18:38:47 +01:00
2009-05-07 14:54:40 +02:00
2009-05-07 14:54:40 +02:00
2009-08-25 15:11:05 +01:00
2009-07-02 06:29:14 +01:00
2009-05-07 14:54:40 +02:00
2009-05-07 14:54:40 +02:00
2009-06-12 13:10:40 +02:00
2009-05-07 14:54:40 +02:00
2009-07-02 06:29:25 +01:00
2009-08-14 08:13:42 +01:00
2009-08-14 08:13:13 +01:00
2009-08-15 16:09:10 +01:00
2009-07-10 18:50:43 +01:00
2009-05-07 14:54:40 +02:00
2009-05-10 18:38:47 +01:00
2009-05-07 14:54:40 +02:00
2009-08-20 17:48:52 +01:00