Permalink
Browse files

Preallocate more space in processResponseHeader() in order to reduce …

…the likelihood that a reallocation is necessary.
  • Loading branch information...
1 parent 0f26594 commit 6ba2ecc853b86f35a37e368d172c951e1ada2fe5 @FooBarWidget FooBarWidget committed Apr 2, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 ext/common/agents/HelperAgent/RequestHandler.h
@@ -937,7 +937,7 @@ class RequestHandler {
const StaticString &origHeaderData)
{
string headerData;
- headerData.reserve(origHeaderData.size() + 100);
+ headerData.reserve(origHeaderData.size() + 150);
// Strip trailing CRLF.
headerData.append(origHeaderData.data(), origHeaderData.size() - 2);

0 comments on commit 6ba2ecc

Please sign in to comment.