libp2p / js-libp2p

The JavaScript Implementation of libp2p networking stack.
https://libp2p.github.io/js-libp2p/
Apache License 2.0
2.34k stars 446 forks source link

fix: remove peer cache #2786

Closed achingbrain closed 1 month ago

achingbrain commented 1 month ago

In cases where the peer store has grown very large (e.g. when a well connected node has been online for a long time), the peer store can get so large that this cache causes abnormal memory use.

The cache was added without any profiling, remove the cache for now, we can add it back if it actually solves a problem.

Change checklist