Skip to content

Commit

Permalink
use smallvec for groups
Browse files Browse the repository at this point in the history
  • Loading branch information
Ivan Druzhitskiy committed Nov 29, 2023
1 parent b05f978 commit b35d176
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bob-backend/src/pearl/disk_controller.rs
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ impl DiskController {
Ok(groups)
}

async fn find_all_groups(&self, operation: &Operation) -> Vec<Group> {
async fn find_all_groups(&self, operation: &Operation) -> smallvec::SmallVec<[Group; 1]> {
self.groups.read().await
.iter()
.filter(|group| group.can_process_operation(operation))
Expand Down

0 comments on commit b35d176

Please sign in to comment.