giewev / Classy

MIT License
1 stars 0 forks source link

Put limits on the size of the transposition table #24

Closed giewev closed 7 years ago

giewev commented 7 years ago

Currently implemented as an unordered map, which makes it difficult to find and remove low quality entries when the table gets full. Should define 2 limits:

Whenever an element is added to the trans table, if it pushes it over the size limit it should trigger the cleanup routine. Ideally this should be done on another thread, but then we have to worry about race conditions