]> git.sesse.net Git - stockfish/commit
Refresh TT entry after a cut-off to avoid aging
authorMarco Costalba <mcostalba@gmail.com>
Thu, 29 Apr 2010 17:21:48 +0000 (18:21 +0100)
committerMarco Costalba <mcostalba@gmail.com>
Sat, 1 May 2010 04:09:55 +0000 (05:09 +0100)
commit8425b2b4997c90aaad35ced6ab190df098f24212
tree48b7aa72923f32f792fe3452d280927c41e5b514
parenta086f34f360acc1f760ea002f08e78726c1946d9
Refresh TT entry after a cut-off to avoid aging

Re-save the same TT entry if value is usable and allow
us to cut-off, it means that entry is valuable and
we want to keep it fresh updating the 'generation'
parameter up to the current value.

Patch suggested by J. Wesley Cleveland and better
clarified by Miguel A. Ballicora.

After 999 games at 1+0 64MB hash size
Mod vs Orig +167 =677 -155 +4 ELO

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