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

Make sure buffer size of wrapper datastores match underlying datastore. #55

Merged
merged 1 commit into from
Nov 16, 2016

Conversation

kevina
Copy link
Contributor

@kevina kevina commented Nov 16, 2016

This is the way I wanted to fix #52. It turned out there was yet another channel I didn't notice originally. With this fix the buffer size of all the channels is now 128 for blockstore.AllKeysChan().

This decreased the time to retrieve 100,000 small (1000 byte) blocks (see ipfs/kubo#3376) from around 340 ms to 245 ms.

@kevina kevina added the status/in-progress In progress label Nov 16, 2016
@whyrusleeping
Copy link
Member

LGTM

@whyrusleeping whyrusleeping merged commit 7519431 into master Nov 16, 2016
@whyrusleeping whyrusleeping deleted the kevina/buf-size-match branch November 16, 2016 04:14
@whyrusleeping whyrusleeping removed the status/in-progress In progress label Nov 16, 2016
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