mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
Preallocate in deduplicate_property_declarations
This commit is contained in:
parent
77f53aae3e
commit
5117b7ec5a
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
|
/// The input and output are in source order
|
||||||
fn deduplicate_property_declarations(block: &mut PropertyDeclarationBlock) {
|
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_normal = PropertyBitField::new();
|
||||||
let mut seen_important = PropertyBitField::new();
|
let mut seen_important = PropertyBitField::new();
|
||||||
let mut seen_custom_normal = Vec::new();
|
let mut seen_custom_normal = Vec::new();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue