vacp2p / nim-libp2p

libp2p implementation in Nim
https://vacp2p.github.io/nim-libp2p/docs/
MIT License
242 stars 52 forks source link

IMReceiving message to minimize redundant large message transmissions #1070

Open ufarooqstatus opened 3 months ago

ufarooqstatus commented 3 months ago

Experimental PR (for discussion only)

1) On receiving message/IDontWant, we send IMReceiving message to peers (these peers can defer sending same message to us for some time)

2) We send IDontWant before message validation

ufarooqstatus commented 3 months ago

Evaluation Results here. For 1 MB message, it shows more than 40% bandwidth reduction, and more than 10% latency reduction

More context here: IMReceiving Message