Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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.
- Loading branch information