nghttpx: Reserve headers vector

This commit is contained in:
Tatsuhiro Tsujikawa 2015-11-05 23:47:22 +09:00
parent ac41946533
commit 7755c2827c
1 changed files with 3 additions and 0 deletions

View File

@ -150,6 +150,9 @@ Downstream::Downstream(Upstream *upstream, MemchunkPool *mcpool,
http2::init_hdidx(request_hdidx_); http2::init_hdidx(request_hdidx_);
http2::init_hdidx(response_hdidx_); http2::init_hdidx(response_hdidx_);
request_headers_.reserve(16);
response_headers_.reserve(32);
} }
Downstream::~Downstream() { Downstream::~Downstream() {