Skip to content

Commit

Permalink
Reduce one hotspot
Browse files Browse the repository at this point in the history
  • Loading branch information
gwilymk committed Aug 26, 2024
1 parent 4da9dcb commit 07745d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dofus_set/src/dofus_set.rs
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ impl State {
}

pub fn sets<'a>(&self, items: &'a Items) -> impl std::iter::Iterator<Item = SetBonus<'a>> + 'a {
let mut sets_linear_map: LinearMap<SetIndex, i32> = LinearMap::new();
let mut sets_linear_map: LinearMap<SetIndex, i32> = LinearMap::with_capacity(8);

for item in self.items(items) {
if let Some(set_id) = item.set_id {
Expand Down

0 comments on commit 07745d8

Please sign in to comment.