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: use index claim #10

Merged
merged 1 commit into from
Jun 6, 2024
Merged

feat: use index claim #10

merged 1 commit into from
Jun 6, 2024

Conversation

alanshaw
Copy link
Member

@alanshaw alanshaw commented Jun 5, 2024

This PR makes use of the assert/index content claim, allowing a w3-index to be used to help serve the data, which yields the following perf improvements to the batching blob fetcher:

Export 500MiB DAG Sub-requests Time
without index 535 11.960s
with index 37 7.554s

Copy link

@vasco-santos vasco-santos left a comment

Choose a reason for hiding this comment

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

LGTM ✨ amazing

@alanshaw alanshaw merged commit 8876ec4 into main Jun 6, 2024
1 check passed
@alanshaw alanshaw deleted the feat/use-index-claim branch June 6, 2024 18:02
alanshaw pushed a commit to storacha/w3up that referenced this pull request Jun 7, 2024
This PR updates the `index/add` handler to publish an [index
claim](https://github.com/w3s-project/content-claims?tab=readme-ov-file#index-claim)
for the added index.

Reading an index from the index claim allows freeway and hoverboard to
serve blocks from all of the shards without having to request a location
claim for each block.

refs storacha/blob-fetcher#10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants