ipfs / ipfs/kubo

Double buffer get and cat

Open
#6,376 0 comments 0 reactions 0 assignees View on GitHub
kind/enhancement
Dominant language
Go
Stars
17.1k
Forks
3.2k
Avg merge
3d 18h
Merged PRs (30d)
11

Description

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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.