• Peter Mrekaj's avatar
    refactor(kademlia,metrics): make metrics persistent writes asynchronous (#1873) · 95b8441b
    Peter Mrekaj authored
    This optimization includes:
    - all counters are stored in memory by default in order to minimize disc I/O operations
    - counters that need to be persisted are flushed periodically to the persistent store
    - switch to sync.Map which is more suitable for the case of disjoint sets of keys
    - using lock-free data structures for the critical parts
    95b8441b
Name
Last commit
Last update
..
internal Loading commit data...
mock Loading commit data...
doc.go Loading commit data...
export_test.go Loading commit data...
kademlia.go Loading commit data...
kademlia_test.go Loading commit data...