Skip to content

Instantly share code, notes, and snippets.

@RangerMauve
Created July 20, 2021 17:15
Show Gist options
  • Save RangerMauve/30f967bc4642095919a2e14ea4f72db3 to your computer and use it in GitHub Desktop.
Save RangerMauve/30f967bc4642095919a2e14ea4f72db3 to your computer and use it in GitHub Desktop.
hyperswarm-web-2

Hyperswarm Web 2

  • Actively prioritize WebRTC connections
    • Before looking up on hyperswarm-proxy, do WebRTC search
  • Optimize for fast initial connection
    • Debug performance to get the first peer ASAP
  • Strip out unneccessary dependencies
    • discrovery-swarm-webrtc has a lot of stuff in it, use lower levels instead
    • Use MMST directly to reduce overall connections
  • Agressive deduplication
    • Multiplex connections as much as possible
    • Make sure existing streams are being used even without peer lookup
    • WebRTC peer IDs are known, don't bother reconnecting to them.
  • Update hyperswarm-proxy to use latest hyperswarm DHT?
    • Might need to wait for it to be fully stabilized first
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment