Skip to content

Commit

Permalink
nghttpx: Reserve headers vector
Browse files Browse the repository at this point in the history
  • Loading branch information
tatsuhiro-t committed Nov 5, 2015
1 parent ac41946 commit 7755c28
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/shrpx_downstream.cc
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,9 @@ Downstream::Downstream(Upstream *upstream, MemchunkPool *mcpool,

http2::init_hdidx(request_hdidx_);
http2::init_hdidx(response_hdidx_);

request_headers_.reserve(16);
response_headers_.reserve(32);
}

Downstream::~Downstream() {
Expand Down

0 comments on commit 7755c28

Please sign in to comment.