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

Issue 745373002: Optimized HostPortPair::ToString and CookieMonster::GetAllCookiesForURLWithOptions. (Closed)

Created:
6 years, 1 month ago by Georges Khalil
Modified:
6 years ago
CC:
chromium-reviews, erikwright (departed), cbentzel+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Optimized HostPortPair::ToString and CookieMonster::GetAllCookiesForURLWithOptions. - Removed GetFlattenedSpdyServer and replaced its calls with host_port_pair.ToString(). - Optimized HostPortPair::ToString() by substituting StringPrintf with string concatenation (reduces the number of temporary allocations). - Added a call to reserve() on cookies to minimize the number of grows. BUG= Committed: https://crrev.com/c15df6727a9c099eae6070dbeae77a33bebab8d1 Cr-Commit-Position: refs/heads/master@{#306494}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Removed GetFlattenedSpdyServer and optimized HostPortPair::ToString(). #

Unified diffs Side-by-side diffs Delta from patch set Stats (+14 lines, -28 lines) Patch
M net/base/host_port_pair.cc View 1 1 chunk +4 lines, -1 line 0 comments Download
M net/cookies/cookie_monster.cc View 1 chunk +1 line, -0 lines 0 comments Download
M net/http/http_server_properties_impl.cc View 1 3 chunks +3 lines, -15 lines 0 comments Download
M net/http/http_server_properties_impl_unittest.cc View 1 3 chunks +6 lines, -12 lines 0 comments Download

Messages

Total messages: 19 (6 generated)
Georges Khalil
PTAL.
6 years ago (2014-12-01 16:13:17 UTC) #2
Ryan Sleevi
https://codereview.chromium.org/745373002/diff/1/net/http/http_server_properties_impl.cc File net/http/http_server_properties_impl.cc (right): https://codereview.chromium.org/745373002/diff/1/net/http/http_server_properties_impl.cc#newcode138 net/http/http_server_properties_impl.cc:138: spdy_server.append(base::IntToString(host_port_pair.port())); Not LGTM. I don't like line 135 because, ...
6 years ago (2014-12-01 16:28:51 UTC) #4
Ryan Sleevi
-agl (to save him review load) +rch (who can also answer about the HostPortPair behaviour)
6 years ago (2014-12-01 16:29:41 UTC) #6
Ryan Hamilton
Please also update the CL description to be explicit about the changes you're making. https://codereview.chromium.org/745373002/diff/1/net/http/http_server_properties_impl.cc ...
6 years ago (2014-12-01 20:14:53 UTC) #7
Georges Khalil
PTAL. As per both Ryan's comments, I have removed GetFlattenedSpdyServer and replaced its calls with ...
6 years ago (2014-12-02 16:07:58 UTC) #10
Ryan Sleevi
On 2014/12/02 16:07:58, Georges Khalil wrote: > PTAL. > > As per both Ryan's comments, ...
6 years ago (2014-12-02 16:13:19 UTC) #11
Georges Khalil
On 2014/12/02 16:13:19, Ryan Sleevi wrote: > On 2014/12/02 16:07:58, Georges Khalil wrote: > > ...
6 years ago (2014-12-02 16:21:20 UTC) #12
Ryan Hamilton
As Both Ryan's said, please update the CL description to be much more specific about ...
6 years ago (2014-12-02 16:58:19 UTC) #13
Georges Khalil
On 2014/12/02 16:58:19, Ryan Hamilton wrote: > As Both Ryan's said, please update the CL ...
6 years ago (2014-12-02 17:51:10 UTC) #14
Ryan Hamilton
Thanks! LGTM
6 years ago (2014-12-02 18:03:09 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/745373002/60001
6 years ago (2014-12-02 22:37:15 UTC) #17
commit-bot: I haz the power
Committed patchset #2 (id:60001)
6 years ago (2014-12-02 23:52:19 UTC) #18
commit-bot: I haz the power
6 years ago (2014-12-02 23:53:17 UTC) #19
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/c15df6727a9c099eae6070dbeae77a33bebab8d1
Cr-Commit-Position: refs/heads/master@{#306494}

Powered by Google App Engine
This is Rietveld 408576698