Closed shoce closed 3 years ago
Thank you for submitting your first issue to this repository! A maintainer will be here shortly to triage and review. In the meantime, please double-check that you have provided all the necessary information to make this process easy! Any information that can help save additional round trips is useful! We currently aim to give initial feedback within two business days. If this does not happen, feel free to leave a comment. Please keep an eye on how this issue will be labeled, as labels give an overview of priorities, assignments and additional actions requested by the maintainers:
Finally, remember to use https://discuss.ipfs.io if you just need general support.
After some investigation, I think it is more a question for github.com/multiformats/go-multihash codebase.
We did recently add features to go-multihash to make it usable in a streaming fashion :)
Unfortunately, you're right, go-cid still doesn't have exposed APIs for streaming usage today. More work is needed on this.
As Prefix.Sum() accepts []byte i need to read the full file into memory and then feed to .Sum(). How can i make use of streaming with io.Copy() instead and reduce memory requirements?