sure, if you always overwrite and your bucket size is 1 then you don't need any aging schemeD Sceviour wrote:Understood. However, it is not necessary to consider transposition age to do this. Simply overwrite the existing hash entry - period.mar wrote:This is exactly what you want - to get rid of old entries as the game progresses...
assume your TT entry is 8 bytes and use bucket size of 8 entries
(assuming cacheline size is 64 bytes)
in this case you iterate entries and compute a score of what to replace
simply put:
- matching signature has highest weight (assume higher score = better candidate for being replaced) => you can abort right away
- mismatching age has second highest weight
- depth difference has third highest weight
- (what I do) exact value from pv nodes have fourth highest weight
i don't follow, sorryNot understood. A transposition probe comes before a transposition write. A TT hit can come without considering transposition age. At least I have seen no examples from other source code where transposition age is considered during the hash probe phase.mar wrote:...but not at all costs (you can still get TT hits from old searches not overwritten by more recent searches, so they "fade out" rather than being wiped out by clearing TT)
