use proper default capacities

This commit is contained in:
MaxOhn
2024-02-13 15:11:30 +01:00
parent 2327287a32
commit b88e49889b
8 changed files with 43 additions and 19 deletions
+6 -3
View File
@@ -259,9 +259,12 @@ impl DecodeState for BeatmapState {
pending_timing_point: None,
pending_difficulty_point: None,
pending_effect_point: None,
curve_points: Vec::new(), // TODO: check for default size
vertices: Vec::new(), // TODO: check for default size
point_split: Vec::new(), // TODO: check for default size
// mean=13.11 | median=8
curve_points: Vec::with_capacity(8),
// mean=16.27 | median=8
vertices: Vec::with_capacity(8),
// mean=19.97 | median=8
point_split: Vec::with_capacity(8),
}
}
}