ipfs / go-bitswap

The golang implementation of the bitswap protocol
MIT License
216 stars 112 forks source link

fix: optimize handling for peers with lots of tasks #537

Closed Stebalien closed 3 years ago

Stebalien commented 3 years ago

This should fix a CPU hotspot when peers request tons of tiny blocks.

Depends on https://github.com/ipfs/go-peertaskqueue/pull/19

whyrusleeping commented 3 years ago

(pushed a rebase)

Stebalien commented 3 years ago

@whyrusleeping has tested this and it appears to help (so far).