Chromium Code Reviews
DescriptionMove some SpdyHeaderBlock instances from heap to stack.
I do not intend any functional change with this CL, just to reduce memory
allocations and code complexity.
* Change SpdyStream::SendRequestHeaders() argument type
and SpdyStream::request_headers_ member type
from unique_ptr<SpdyHeaderBlock> to SpdyHeaderBlock.
* Add bool request_headers_valid_ to replace unique_ptr nullptr test.
* Remove undefined SpdyStream::ProduceHeaderFrame() declaration.
* Change a number of local SpdyHeaderBlock variables from heap (unique_ptr) to
stack to reduce the number of memory allocations. Most of these are in tests,
and one in SpdyHttpStream::SendRequest().
BUG=621905
Committed: https://crrev.com/1d1d8646f16b16f04ef4b8a22ba119a7a5f4773c
Cr-Commit-Position: refs/heads/master@{#406586}
Patch Set 1 #
Messages
Total messages: 18 (9 generated)
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||