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

raft: Avoid multiple allocs when merging stable and unstable log #10684

Merged
merged 1 commit into from
Apr 30, 2019

Commits on Apr 26, 2019

  1. raft: Avoid multiple allocs when merging stable and unstable log

    Appending to an empty slice twice could (and often did) result in
    multiple allocations. This was wasteful. We can avoid this by performing
    a single allocation with the correct size and copying into it.
    nvanbenschoten committed Apr 26, 2019
    Configuration menu
    Copy the full SHA
    b5593de View commit details
    Browse the repository at this point in the history