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

Double buffer get and cat #6376

Open
Stebalien opened this issue May 24, 2019 · 0 comments
Open

Double buffer get and cat #6376

Stebalien opened this issue May 24, 2019 · 0 comments
Labels
kind/enhancement A net-new feature or improvement to an existing feature

Comments

@Stebalien
Copy link
Member

We should double-buffer IPFS get and cat. That is, have one goroutine reading from the datastore and filling buffers to send back to the client and another goroutine actually writing these buffers.

From some basic testing with https://github.com/stebalien/go-dbuf, this gives a 10% speedup on an SSD with badger. However, I think we can do better.

@Stebalien Stebalien added the kind/enhancement A net-new feature or improvement to an existing feature label May 24, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/enhancement A net-new feature or improvement to an existing feature
Projects
None yet
Development

No branches or pull requests

1 participant