Files
Stockfish/src
Marco Costalba 37e9802411 Skip evaluate() call after a null move
Reuse the evaluation of the parent with inverted sign and
set margin to zero (this is an hack!).

This is done only in qsearch where almost 15% of calls are
from a null move. In normal search the number of nodes where

(ss-1)->currentMove == MOVE_NULL

is almost zero and so there is no need of using this trick.

The big advantage of this patch is a speed-up due to skipped
evaluate() calls, that are very costly.

Functionality is of course affected and we will need to proper
test it later. For now we just register a 3-4% speed up.

Suggested by Hongzhi Cheng.

bench: 5051328
2012-11-04 10:48:14 +01:00
..
2012-10-06 13:01:44 +02:00
2012-09-22 11:19:10 +02:00
2012-09-16 10:32:57 +02:00
2012-10-28 10:17:57 +01:00
2012-10-28 10:17:57 +01:00
2012-10-21 09:12:02 +02:00
2012-10-08 11:43:47 +02:00
2012-09-04 09:38:51 +02:00
2012-09-16 14:14:55 +02:00
2012-10-22 10:03:53 +02:00
2012-09-09 10:24:40 +02:00
2012-09-14 09:57:13 +02:00
2012-11-02 11:43:23 +01:00
2012-10-30 20:03:35 +01:00
2012-10-01 10:44:04 +02:00
2012-10-28 11:28:14 +01:00
2012-08-18 12:26:22 +01:00