helium / erlang-libp2p

An Erlang implementation of libp2p swarms
https://helium.github.io/erlang-libp2p
Apache License 2.0
121 stars 34 forks source link

use rocksdb:snapshot for fold_peers to speed up #416

Closed ci-work closed 2 years ago

ci-work commented 2 years ago

using rocksdb:snapshot provides ~2x speed up to fold_peers context: running modified libp2p with a much higher value for DEFAULT_STALE_TIME, so our peerbook is much larger (390k+ entries), using a snapshot reduced time to call fold_peers from 10s to 3-4s

ci-work commented 2 years ago

this unblocks https://github.com/helium/blockchain-core/pull/1164