Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(shwap/bitswap): use new option for optimized Has check #3813

Merged
merged 3 commits into from
Oct 18, 2024

Conversation

Wondertan
Copy link
Member

This option instructs Bitswap to use Has call instead of GetSize on Blockstore for WANT_HAVE message, which prevents Store from loading and caching eds files in memory. Instead, the Bitswap now simply check eds file presence on the disk.

@Wondertan Wondertan added kind:feat Attached to feature PRs shwap labels Oct 4, 2024
@Wondertan Wondertan self-assigned this Oct 4, 2024
Copy link
Contributor

@cristaloleg cristaloleg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SGTM

@Wondertan
Copy link
Member Author

Wondertan commented Oct 6, 2024

Keeping this draft until further testing. This change seems to make request timeout issues worse

@Wondertan Wondertan marked this pull request as ready for review October 14, 2024 12:42
@Wondertan Wondertan enabled auto-merge (squash) October 14, 2024 12:43
@Wondertan
Copy link
Member Author

While debugging the source of timeouts, I found the reason why they happen unrelated to this PR. The connection between these was disproven, so RFR again

@Wondertan Wondertan merged commit 48feb19 into main Oct 18, 2024
22 checks passed
@Wondertan Wondertan deleted the bitswap-replace branch October 18, 2024 15:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind:feat Attached to feature PRs shwap
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants