1
0
Fork 0
mirror of https://github.com/sockspls/badfish synced 2025-04-30 16:53:09 +00:00
BadFish/src
Marco Costalba 823a5918e7 Retire SearchStack sstack[] from SplitPoint
Use a local variable instead. To make it work we need to
correctly init next ply search stack at the beginning of the
search because now that ss is allocated on the stack instead
of on the global storage it contains garbage.

As a side effect we can peform a fast search stack
init in id_loop().

With this patch size of SplitPoint goes from 71944 to 136 bytes,
and consequently size of Thread goes from 575568 to 1104 bytes.

Finally the size of ThreadsManager that contains all the thread
info goes from 9209248 to just 17824 bytes !!

No functional change also in faked split.

Signed-off-by: Marco Costalba <mcostalba@gmail.com>
2011-02-18 16:54:49 +01:00
..
benchmark.cpp Sync Root new depth to what we do in search() 2011-02-18 11:24:42 +01:00
bitbase.cpp Another round of bitboard.cpp cleanups 2011-01-04 11:12:31 +01:00
bitboard.cpp Remove defined(IS_64BIT) in init_sliding_attacks() 2011-01-29 14:06:29 +01:00
bitboard.h Small cleanup in init_sliding_attacks() 2011-01-19 19:50:44 +01:00
bitcount.h Remove defined(IS_64BIT) in init_sliding_attacks() 2011-01-29 14:06:29 +01:00
book.cpp Big book.cpp cleanup 2011-01-10 19:55:02 +01:00
book.h Big book.cpp cleanup 2011-01-10 19:55:02 +01:00
color.h Use simple macro to enable operators 2011-01-03 22:27:17 +01:00
COPYING Initial import of Glaurung 2.1 2008-09-01 07:59:13 +02:00
depth.h Use simple macro to enable operators 2011-01-03 22:27:17 +01:00
endgame.cpp Use opposite_color_squares() instead of same_color_squares() 2011-01-19 13:50:51 +01:00
endgame.h Retire bitbase.h 2010-11-07 10:53:19 +01:00
evaluate.cpp Retire some unused functions in bitboard.h 2011-01-19 13:33:26 +01:00
evaluate.h Implement "seldepth" UCI info 2010-12-31 14:27:24 +01:00
history.h Fix some warnings under icc 2011-01-18 18:53:19 +01:00
lock.h Readd SRWLOCK and Condition Variables under Windows 2011-01-03 10:49:33 +01:00
main.cpp Sync Root new depth to what we do in search() 2011-02-18 11:24:42 +01:00
Makefile Retire history.cpp 2011-01-15 10:02:45 +01:00
material.cpp Introduce SimpleHash class 2011-01-07 11:20:49 +01:00
material.h Introduce SimpleHash class 2011-01-07 11:20:49 +01:00
misc.cpp Small cleanup in execute_uci_command() 2011-01-09 16:24:30 +01:00
misc.h Move Min() and Max() macros to types.h 2011-01-15 11:00:00 +01:00
move.cpp Write the LogFile only at the end of an iteration 2011-02-13 11:45:49 +01:00
move.h Write the LogFile only at the end of an iteration 2011-02-13 11:45:49 +01:00
movegen.cpp Force inlining of move generation functions 2011-01-07 16:57:15 +01:00
movegen.h Unify move generation 2011-01-07 16:56:42 +01:00
movepick.cpp Add a MovePicker c'tor specialized for qsearch 2011-01-23 23:13:14 +01:00
movepick.h Retire singleEvasion 2011-01-27 07:55:04 +01:00
pawns.cpp Introduce SimpleHash class 2011-01-07 11:20:49 +01:00
pawns.h Introduce SimpleHash class 2011-01-07 11:20:49 +01:00
piece.h Use simple macro to enable operators 2011-01-03 22:27:17 +01:00
position.cpp Do not use <algorithm> in to_fen() 2011-01-29 13:28:00 +01:00
position.h Use opposite_color_squares() instead of same_color_squares() 2011-01-19 13:50:51 +01:00
psqtab.h Use namespace in position.cpp 2010-11-07 13:51:03 +01:00
rkiss.h Various cleanup in book.cpp 2010-11-08 18:51:42 +01:00
search.cpp Retire SearchStack sstack[] from SplitPoint 2011-02-18 16:54:49 +01:00
search.h Retire move.cpp 2011-01-07 13:40:13 +01:00
square.h Use opposite_color_squares() instead of same_color_squares() 2011-01-19 13:50:51 +01:00
thread.h Retire SearchStack sstack[] from SplitPoint 2011-02-18 16:54:49 +01:00
timeman.cpp Rewrite options handling in an object oriented fashion 2010-11-05 06:10:05 +01:00
timeman.h Small codestyle touches 2010-10-09 13:05:58 +01:00
tt.cpp Avoid permanent PV entries in TT 2011-02-16 08:57:35 +01:00
tt.h Fix some warnings under icc 2011-01-18 18:53:19 +01:00
types.h Silence silly MSVC warning c4146 2011-01-29 14:10:05 +01:00
uci.cpp Small cleanup in execute_uci_command() 2011-01-09 16:24:30 +01:00
ucioption.cpp Retire singleEvasion 2011-01-27 07:55:04 +01:00
ucioption.h Small cleanup in execute_uci_command() 2011-01-09 16:24:30 +01:00
value.h Clarify we want Score and Value to be integers 2011-01-15 10:37:36 +01:00