• 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
.githooks Loading commit data...
.github Loading commit data...
cmd/bee Loading commit data...
openapi Loading commit data...
packaging Loading commit data...
pkg Loading commit data...
.deepsource.toml Loading commit data...
.dockerignore Loading commit data...
.gitignore Loading commit data...
.golangci.yml Loading commit data...
.goreleaser.yml Loading commit data...
CODING.md Loading commit data...
Dockerfile Loading commit data...
Dockerfile.goreleaser Loading commit data...
LICENSE Loading commit data...
Makefile Loading commit data...
README.md Loading commit data...
commitlint.config.js Loading commit data...
doc.go Loading commit data...
go.mod Loading commit data...
go.sum Loading commit data...
install.sh Loading commit data...
version.go Loading commit data...