Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(90)

Issue 2144933005: Move some SpdyHeaderBlock instances from heap to stack. (Closed)

Created:
4 years, 5 months ago by Bence
Modified:
4 years, 5 months ago
Reviewers:
xunjieli
CC:
chromium-reviews, cbentzel+watch_chromium.org, Ryan Hamilton
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Move 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 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+122 lines, -182 lines) Patch
M net/spdy/bidirectional_stream_spdy_impl.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M net/spdy/spdy_http_stream.cc View 1 chunk +3 lines, -3 lines 0 comments Download
M net/spdy/spdy_proxy_client_socket.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M net/spdy/spdy_session_pool_unittest.cc View 1 chunk +1 line, -2 lines 0 comments Download
M net/spdy/spdy_session_unittest.cc View 54 chunks +78 lines, -130 lines 0 comments Download
M net/spdy/spdy_stream.h View 3 chunks +3 lines, -7 lines 0 comments Download
M net/spdy/spdy_stream.cc View 5 chunks +12 lines, -10 lines 0 comments Download
M net/spdy/spdy_stream_unittest.cc View 13 chunks +21 lines, -26 lines 0 comments Download

Messages

Total messages: 18 (9 generated)
Bence
xunjieli: PTAL. Thank you.
4 years, 5 months ago (2016-07-14 16:25:51 UTC) #4
xunjieli
The CL looks good! I am concerned that with the raw type, SpdyHeaderBlock, as the ...
4 years, 5 months ago (2016-07-14 17:44:12 UTC) #7
Bence
On 2016/07/14 17:44:12, xunjieli wrote: > The CL looks good! I am concerned that with ...
4 years, 5 months ago (2016-07-15 18:54:39 UTC) #9
Bence
Helen: thank you for your feedback. I checked in with chromium-dev@, see https://groups.google.com/a/chromium.org/forum/#!topic/chromium-dev/M6AoLHYCLqw, and did ...
4 years, 5 months ago (2016-07-20 15:08:14 UTC) #10
xunjieli
On 2016/07/20 15:08:14, Bence wrote: > Helen: thank you for your feedback. I checked in ...
4 years, 5 months ago (2016-07-20 15:30:46 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2144933005/1
4 years, 5 months ago (2016-07-20 15:34:17 UTC) #13
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 5 months ago (2016-07-20 16:52:16 UTC) #15
commit-bot: I haz the power
CQ bit was unchecked.
4 years, 5 months ago (2016-07-20 16:52:24 UTC) #16
commit-bot: I haz the power
4 years, 5 months ago (2016-07-20 16:54:30 UTC) #18
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/1d1d8646f16b16f04ef4b8a22ba119a7a5f4773c
Cr-Commit-Position: refs/heads/master@{#406586}

Powered by Google App Engine
This is Rietveld 408576698