mafintosh / peer-wire-swarm

swarm implementation for bittorrent
MIT License
80 stars 18 forks source link

Stop running the DHT after we have enough peers #2

Closed Ivshti closed 11 years ago

Ivshti commented 11 years ago

Stop running the DHT if the peer count reaches two times the limit. This saves network bandwidth at the beginning of the stream, while still allowing for enough peers for swapping.

Not completely sure about the benefits, should be quite beneficial in theory, and it feels like it in practice.