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:
The size the table has to be before triggering a cleanup
The size that the table should be reduced to after the cleanup
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
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