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:
bors-servo 2017-01-31 17:58:18 -08:00 committed by GitHub
commit da89099e26

View file

@ -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();