-
-
Notifications
You must be signed in to change notification settings - Fork 335
Closed
Labels
A-headersArea: HTTP headersArea: HTTP headersE-easyEffort: easy. Start here :DEffort: easy. Start here :DS-performanceSeverity: performance. Make existing functionality go faster.Severity: performance. Make existing functionality go faster.
Description
Line 473 in 9c05e39
entries: Vec::with_capacity(raw_cap), |
Line 635 in 9c05e39
self.entries = Vec::with_capacity(usable_capacity(cap)); |
Line 1592 in 9c05e39
self.entries = Vec::with_capacity(usable_capacity(new_raw_cap)); |
HeaderMap::with_capacity
reserves the entry vector with Vec::with_capacity(raw_cap)
, while other functions reserves the same entry with Vec::with_capacity(usable_capacity(raw_cap))
.
Metadata
Metadata
Assignees
Labels
A-headersArea: HTTP headersArea: HTTP headersE-easyEffort: easy. Start here :DEffort: easy. Start here :DS-performanceSeverity: performance. Make existing functionality go faster.Severity: performance. Make existing functionality go faster.