-
Notifications
You must be signed in to change notification settings - Fork 593
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
c/controller_backend: use std::list to store deltas
Deltas were previously stored as a vector per `ntp`. Deltas access pattern (iteration, inserting and popping elements from back and from the end) makes it perfect candidate for `std::list` usage. The `std::list` doesn't use contiguous allocation so will not account for the memory fragmentation. Signed-off-by: Michal Maslanka <michal@redpanda.com>
- Loading branch information
1 parent
6a566a9
commit 8e3d48e
Showing
3 changed files
with
20 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters