You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the internal implementation of bitswap, wants and haves were split into their own respective sessions on purpose to allow handling each request on its own, putting peers into those sessions based on any requests made for said blocks, however this would result in multiple messages being sent when multiple blocks are requested. We could optimize this by bundling the multiple requests into a single message, assuming we can stay below the max message size (which is 2MB). If a message does begin to reach that limit, we could split it up into multiple messages if needed.
The text was updated successfully, but these errors were encountered:
dariusc93
changed the title
bitswap: Include multiple requests/blocks in a single message
bitswap: Bundle multiple requests/blocks in a single message
May 10, 2024
dariusc93
changed the title
bitswap: Bundle multiple requests/blocks in a single message
bitswap: Bundle multiple requests/blocks into a single message
May 10, 2024
In the internal implementation of bitswap, wants and haves were split into their own respective sessions on purpose to allow handling each request on its own, putting peers into those sessions based on any requests made for said blocks, however this would result in multiple messages being sent when multiple blocks are requested. We could optimize this by bundling the multiple requests into a single message, assuming we can stay below the max message size (which is 2MB). If a message does begin to reach that limit, we could split it up into multiple messages if needed.
The text was updated successfully, but these errors were encountered: