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

Commits on Dec 31, 2017

  1. Use fixed preallocation instead of costly GetSerializeSize

    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.
    sipa authored and dgenr8 committed Dec 31, 2017
    Configuration menu
    Copy the full SHA
    2509eb1 View commit details
    Browse the repository at this point in the history
  2. Batch construct batches

    Reuse the serialization buffers used for constructing the LevelDB
    write batch. This avoids 2 allocations per utxo write.
    sipa authored and dgenr8 committed Dec 31, 2017
    Configuration menu
    Copy the full SHA
    ce990fa View commit details
    Browse the repository at this point in the history