Skip to content
This repository has been archived by the owner on Feb 12, 2024. It is now read-only.

feat: persist peerstore #3072

Merged
merged 1 commit into from
Jun 10, 2020
Merged

feat: persist peerstore #3072

merged 1 commit into from
Jun 10, 2020

Conversation

vasco-santos
Copy link
Member

This PR enables the PeerStore persistence by default in the libp2p runtime configurations.

The configuration details can be seen via libp2p/js-libp2p/doc/CONFIGURATION.md#configuring-peerstore. According to the instructions there, we set the browser threshold to 1.

Regarding benchmarks, I did a small experiment while we do not have testground support to test proper networking scenarios. The conclusions are available in libp2p/js-libp2p#582#issuecomment-637404704. The current results are more significant for node in our current state, but I hope that we can leverage this to also improve browser results with the rendezvous and circuit relay instead of the star servers. It is important pointing out that the results should be better on a real network scenario, since the latencies for connections and exchanging known peers will be bigger than a bunch of nodes in my machine.

@vasco-santos vasco-santos marked this pull request as ready for review June 8, 2020 15:55
Copy link
Member

@achingbrain achingbrain left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@achingbrain achingbrain merged commit b404974 into master Jun 10, 2020
@achingbrain achingbrain deleted the feat/persist-peerstore branch June 10, 2020 14:30
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants