generated from ipfs/ipfs-repository-template
-
Notifications
You must be signed in to change notification settings - Fork 148
Closed
Labels
P1High: Likely tackled by core team if no one steps upHigh: Likely tackled by core team if no one steps up
Description
Currently, WANT_HAVE requests rely on GetSize to check for presence of the requested block and the learnt size gets discarded.
Basically, the Blockstore has to lookup data size that's unused. Depending on Blockstore implementation, this might have different consequences. Intuitively, looking up data size should be more expensive compared to checking data existence. In practice, this is what happens in our case.
Hence the proposal is to add new method to blockstore manager that performs only the Has check and refactor ReceivedMessage to decouple processing of WANT_HAVE and WANT_BLOCK messages.
walldiss, renaynay, Jorropo, cristaloleg and SgtPooki
Metadata
Metadata
Assignees
Labels
P1High: Likely tackled by core team if no one steps upHigh: Likely tackled by core team if no one steps up