For improving IPFS GET performance

Hi, everyone.
I’m studying IPFS.
I found something to share, but it may be my misunderstanding IPFS.

In the source, responseemitter.go(https://github.com/ipfs/go-ipfs-cmds/blob/f4d1d56f3d96c917f546de507422dc2258d89a62/http/responseemitter.go#L280) and extractor.go (https://github.com/whyrusleeping/tar-utils/blob/8c6c8ba81d5c71fd69c0f48dbde4b2fb422b6dfc/extractor.go#L175), there are hard-coded value, 4096.

After changing this value to 256k(in fact, 262144), I tested and found the IPFS GET performance improvement (upto 720MB/s) in small- sized-file(5.5MB) case, but not big-sized-file case.

I guess this value can effect the throughput of download in various context, and must be a member in the configuration.

3 Likes