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

Batch construct batches #282

Merged
merged 2 commits into from Dec 31, 2017
Merged

Conversation

dagurval
Copy link
Member

bitcoin/bitcoin#9346

Also includes commit d59a518 from bitcoin/bitcoin#9039

Build on top of #276

Dbwrapper used GetSerializeSize() to compute the size of the buffer
to preallocate. For some cases (specifically: CCoins) this requires
a costly compression call. Avoid this by just using fixed size
preallocations instead.
Reuse the serialization buffers used for constructing the LevelDB
write batch. This avoids 2 allocations per utxo write.
@dgenr8 dgenr8 merged commit 505e665 into bitcoinxt:master Dec 31, 2017
@dagurval dagurval deleted the 18-12-batchbatches branch January 30, 2018 14:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants