litep2p icon indicating copy to clipboard operation
litep2p copied to clipboard

kad: Strategy for removing old MemoryStore records

Open lexnv opened this issue 2 years ago • 1 comments

When the memory store is full and a new record is added, remove expired records.

Extracted from: https://github.com/paritytech/litep2p/pull/78#discussion_r1570937475

lexnv avatar Apr 19 '24 13:04 lexnv

+1 for keeping the records sorted and not traversing all the store.

dmitry-markin avatar Jul 30 '24 16:07 dmitry-markin