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

Issue 944883003: QUIC - Cache the connection type and connection description. Make the (Closed)

Created:
5 years, 10 months ago by ramant (doing other things)
Modified:
5 years, 10 months ago
Reviewers:
Ryan Hamilton
CC:
chromium-reviews, cbentzel+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

QUIC - Cache the connection type and connection description. Make the expensive calls if connection type has changed or if connection description was null. Defined a new class to cache the connection description and this class is owned by QuicStreamFactory. This fixes the Jank on IO thread and avoids call to GetWifiPHYLayerProtocol (which takes around 40ms). BUG=422516 R=rch@chromium.org Committed: https://crrev.com/041b299d0a6476be730bfbc100b33f3184279339 Cr-Commit-Position: refs/heads/master@{#317674}

Patch Set 1 : #

Patch Set 2 : #

Patch Set 3 : Move description caching into a distinct class #

Total comments: 4

Patch Set 4 : Pass connection_description as argument #

Patch Set 5 : removed const char* const as return value to fix ios_rel_device_ninja_ng compile error #

Total comments: 8

Patch Set 6 : Fix comments to Patch Set 5 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+249 lines, -75 lines) Patch
M net/net.gypi View 1 2 2 chunks +3 lines, -0 lines 0 comments Download
A net/quic/network_connection.h View 1 2 3 4 5 1 chunk +61 lines, -0 lines 0 comments Download
A net/quic/network_connection.cc View 1 2 4 1 chunk +76 lines, -0 lines 0 comments Download
A net/quic/network_connection_unittest.cc View 1 2 1 chunk +81 lines, -0 lines 0 comments Download
M net/quic/quic_client_session.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M net/quic/quic_client_session.cc View 1 2 3 2 chunks +2 lines, -1 line 0 comments Download
M net/quic/quic_client_session_test.cc View 1 2 3 4 5 1 chunk +6 lines, -2 lines 0 comments Download
M net/quic/quic_connection_logger.h View 1 2 3 1 chunk +3 lines, -1 line 0 comments Download
M net/quic/quic_connection_logger.cc View 1 2 3 3 chunks +5 lines, -59 lines 0 comments Download
M net/quic/quic_connection_logger_unittest.cc View 1 2 3 4 5 1 chunk +2 lines, -1 line 0 comments Download
M net/quic/quic_http_stream_test.cc View 1 2 3 4 5 1 chunk +5 lines, -10 lines 0 comments Download
M net/quic/quic_stream_factory.h View 1 2 2 chunks +3 lines, -0 lines 0 comments Download
M net/quic/quic_stream_factory.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 21 (11 generated)
ramant (doing other things)
Hi Ryan, QuicConnectionLogger GetConnectionDescriptionString is taking around 30ms only on windows (whenever we create a ...
5 years, 10 months ago (2015-02-20 22:34:58 UTC) #4
Ryan Hamilton
As discussed offline, it's probably best to move this description caching into a distinct class, ...
5 years, 10 months ago (2015-02-21 04:02:19 UTC) #5
ramant (doing other things)
Hi Ryan, Implemented a new class to cache the connection description. Will move this code ...
5 years, 10 months ago (2015-02-23 03:08:56 UTC) #10
Ryan Hamilton
Looking great. Two small suggestions. https://codereview.chromium.org/944883003/diff/160001/net/quic/network_connection.h File net/quic/network_connection.h (right): https://codereview.chromium.org/944883003/diff/160001/net/quic/network_connection.h#newcode34 net/quic/network_connection.h:34: const char* GetDescription(); Please ...
5 years, 10 months ago (2015-02-23 18:43:00 UTC) #11
ramant (doing other things)
PTAL. https://codereview.chromium.org/944883003/diff/160001/net/quic/network_connection.h File net/quic/network_connection.h (right): https://codereview.chromium.org/944883003/diff/160001/net/quic/network_connection.h#newcode34 net/quic/network_connection.h:34: const char* GetDescription(); On 2015/02/23 18:43:00, Ryan Hamilton ...
5 years, 10 months ago (2015-02-23 19:50:19 UTC) #13
Ryan Hamilton
LGTM. a few nits, but feel free to land once fixed. https://codereview.chromium.org/944883003/diff/240001/net/quic/network_connection.h File net/quic/network_connection.h (right): ...
5 years, 10 months ago (2015-02-23 20:42:19 UTC) #15
ramant (doing other things)
Thanks much Ryan for quick review. https://codereview.chromium.org/944883003/diff/240001/net/quic/network_connection.h File net/quic/network_connection.h (right): https://codereview.chromium.org/944883003/diff/240001/net/quic/network_connection.h#newcode35 net/quic/network_connection.h:35: // NetworkChangeNotifier::ConnectionTypeToString. Callers ...
5 years, 10 months ago (2015-02-23 21:05:30 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/944883003/260001
5 years, 10 months ago (2015-02-23 21:06:29 UTC) #19
commit-bot: I haz the power
Committed patchset #6 (id:260001)
5 years, 10 months ago (2015-02-23 23:03:38 UTC) #20
commit-bot: I haz the power
5 years, 10 months ago (2015-02-23 23:24:11 UTC) #21
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/041b299d0a6476be730bfbc100b33f3184279339
Cr-Commit-Position: refs/heads/master@{#317674}

Powered by Google App Engine
This is Rietveld 408576698