Skip to content

Commit 6120a53

Browse files
committed
graph: Reserve extra capacity upfront when appending RowGroups
1 parent ed1472c commit 6120a53

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

graph/src/components/store/write.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -468,6 +468,7 @@ impl RowGroup {
468468
));
469469
}
470470

471+
self.rows.reserve(group.rows.len());
471472
for row in group.rows {
472473
self.append_row(row)?;
473474
}

0 commit comments

Comments
 (0)