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

MerkleDAG Batch #2263

Closed
daviddias opened this issue Jan 29, 2016 · 2 comments
Closed

MerkleDAG Batch #2263

daviddias opened this issue Jan 29, 2016 · 2 comments
Labels
kind/support A question or request for support

Comments

@daviddias
Copy link
Member

this might be obvious, but since I didn't have any docs, thought of asking :)

Batch func purpose is to be able to defer writes to disk, it is a perf thing only, right?

https://github.com/ipfs/go-ipfs/blob/master/merkledag/merkledag.go#L260-L296

@daviddias daviddias added the kind/support A question or request for support label Jan 29, 2016
@whyrusleeping
Copy link
Member

this is a perf thing, yes. Writing a bunch of things to disk all at the same time saves syscalls.

@daviddias
Copy link
Member Author

Sounds good 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/support A question or request for support
Projects
None yet
Development

No branches or pull requests

2 participants