Inconsistent capacity handling in HeaderMap::with_capacity
#353
Labels
A-headers
Area: HTTP headers
E-easy
Effort: easy. Start here :D
S-performance
Severity: performance. Make existing functionality go faster.
http/src/header/map.rs
Line 473 in 9c05e39
http/src/header/map.rs
Line 635 in 9c05e39
http/src/header/map.rs
Line 1592 in 9c05e39
HeaderMap::with_capacity
reserves the entry vector withVec::with_capacity(raw_cap)
, while other functions reserves the same entry withVec::with_capacity(usable_capacity(raw_cap))
.The text was updated successfully, but these errors were encountered: