mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Auto merge of #15321 - Manishearth:preallocate, r=bholley
Preallocate in deduplicate_property_declarations r? @bholley <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/15321) <!-- Reviewable:end -->
This commit is contained in:
commit
da89099e26
1 changed files with 1 additions and 1 deletions
|
@ -329,7 +329,7 @@ mod property_bit_field {
|
|||
///
|
||||
/// The input and output are in source order
|
||||
fn deduplicate_property_declarations(block: &mut PropertyDeclarationBlock) {
|
||||
let mut deduplicated = Vec::new();
|
||||
let mut deduplicated = Vec::with_capacity(block.declarations.len());
|
||||
let mut seen_normal = PropertyBitField::new();
|
||||
let mut seen_important = PropertyBitField::new();
|
||||
let mut seen_custom_normal = Vec::new();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue