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

Issue 454623003: Store in memory cookies in a hash set instead of a list. (Closed)

Created:
6 years, 4 months ago by erikchen
Modified:
6 years, 4 months ago
CC:
chromium-reviews, markusheintz_, cbentzel+watch_chromium.org
Project:
chromium
Visibility:
Public.

Description

Store in memory cookies in a hash set instead of a list. The old code was performing expensive string searches against cookies stored in a list. See the bug for Instruments/DTrace results of the performance benefits. BUG=401629 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=290383

Patch Set 1 : #

Total comments: 8

Patch Set 2 : Comments from avi. #

Patch Set 3 : Move CanonicalCookieHash to chrome/browser. #

Patch Set 4 : Rebase against top of tree. #

Patch Set 5 : Get hash_set compiling on windows. #

Patch Set 6 : Fix total ordering. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+294 lines, -164 lines) Patch
M chrome/browser/browsing_data/browsing_data_cookie_helper.h View 1 2 3 4 3 chunks +11 lines, -10 lines 0 comments Download
M chrome/browser/browsing_data/browsing_data_cookie_helper.cc View 1 2 3 4 8 chunks +38 lines, -46 lines 0 comments Download
M chrome/browser/browsing_data/browsing_data_cookie_helper_unittest.cc View 3 chunks +129 lines, -98 lines 0 comments Download
A chrome/browser/browsing_data/canonical_cookie_hash.h View 1 2 3 4 5 1 chunk +86 lines, -0 lines 0 comments Download
A chrome/browser/browsing_data/canonical_cookie_hash.cc View 1 2 3 4 1 chunk +18 lines, -0 lines 0 comments Download
M chrome/browser/content_settings/local_shared_objects_container.cc View 1 2 3 4 2 chunks +10 lines, -10 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 28 (0 generated)
erikchen
avi: Please review.
6 years, 4 months ago (2014-08-07 23:43:00 UTC) #1
Avi (use Gerrit)
https://codereview.chromium.org/454623003/diff/20001/chrome/browser/browsing_data/browsing_data_cookie_helper.cc File chrome/browser/browsing_data/browsing_data_cookie_helper.cc (right): https://codereview.chromium.org/454623003/diff/20001/chrome/browser/browsing_data/browsing_data_cookie_helper.cc#newcode239 chrome/browser/browsing_data/browsing_data_cookie_helper.cc:239: net::CookieHashSet* cookie_list = GetCookiesFor(origin_cookie_url_); Or... static const GURL origin_cookie_url(kGlobalCookieListURL); ...
6 years, 4 months ago (2014-08-07 23:50:38 UTC) #2
erikchen
avi: PTAL https://codereview.chromium.org/454623003/diff/20001/chrome/browser/browsing_data/browsing_data_cookie_helper.cc File chrome/browser/browsing_data/browsing_data_cookie_helper.cc (right): https://codereview.chromium.org/454623003/diff/20001/chrome/browser/browsing_data/browsing_data_cookie_helper.cc#newcode239 chrome/browser/browsing_data/browsing_data_cookie_helper.cc:239: net::CookieHashSet* cookie_list = GetCookiesFor(origin_cookie_url_); On 2014/08/07 23:50:37, ...
6 years, 4 months ago (2014-08-08 00:35:28 UTC) #3
Avi (use Gerrit)
lgtm
6 years, 4 months ago (2014-08-08 00:59:09 UTC) #4
erikchen
markusheintz: Looking for an OWNER review of chrome/browser/browsing_data and chrome/browser/content_settings eroman: Looking for an OWNER ...
6 years, 4 months ago (2014-08-08 01:10:48 UTC) #5
markusheintz_
content_settings and browsing_data changes LGTM
6 years, 4 months ago (2014-08-11 17:50:17 UTC) #6
erikwright (departed)
On 2014/08/11 17:50:17, markusheintz_ wrote: > content_settings and browsing_data changes LGTM I'm back in office ...
6 years, 4 months ago (2014-08-12 14:00:41 UTC) #7
erikwright (departed)
(1) I'm personally not a big fan of having sets that hash/compare on only a ...
6 years, 4 months ago (2014-08-12 14:45:28 UTC) #8
erikchen
erikwright: I moved the hashing structs/typedefs into a new file in chrome/browser, as per your ...
6 years, 4 months ago (2014-08-12 16:44:11 UTC) #9
erikwright (departed)
On 2014/08/12 16:44:11, erikchen wrote: > erikwright: I moved the hashing structs/typedefs into a new ...
6 years, 4 months ago (2014-08-13 17:56:00 UTC) #10
erikchen
erikwright: Responses inline. This comment is to let you know that I will be committing ...
6 years, 4 months ago (2014-08-15 01:43:35 UTC) #11
erikchen
The CQ bit was checked by erikchen@chromium.org
6 years, 4 months ago (2014-08-15 01:43:42 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/erikchen@chromium.org/454623003/100001
6 years, 4 months ago (2014-08-15 01:48:20 UTC) #13
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: linux_gpu on tryserver.chromium.gpu ...
6 years, 4 months ago (2014-08-15 07:53:58 UTC) #14
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 4 months ago (2014-08-15 07:56:18 UTC) #15
commit-bot: I haz the power
Try jobs failed on following builders: mac_gpu on tryserver.chromium.gpu (http://build.chromium.org/p/tryserver.chromium.gpu/builders/mac_gpu/builds/42194) ios_dbg_simulator on tryserver.chromium.mac (http://build.chromium.org/p/tryserver.chromium.mac/builders/ios_dbg_simulator/builds/5977) ios_rel_device ...
6 years, 4 months ago (2014-08-15 07:56:20 UTC) #16
erikchen
The CQ bit was checked by erikchen@chromium.org
6 years, 4 months ago (2014-08-15 20:15:51 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/erikchen@chromium.org/454623003/120001
6 years, 4 months ago (2014-08-15 20:18:21 UTC) #18
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: win_gpu on tryserver.chromium.gpu ...
6 years, 4 months ago (2014-08-15 22:11:35 UTC) #19
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 4 months ago (2014-08-15 22:28:08 UTC) #20
commit-bot: I haz the power
Try jobs failed on following builders: win8_chromium_rel on tryserver.chromium.win (http://build.chromium.org/p/tryserver.chromium.win/builders/win8_chromium_rel/builds/4543)
6 years, 4 months ago (2014-08-15 22:28:09 UTC) #21
erikchen
avi: Looking for another review. Diff patch set 5 against patch set 4. I had ...
6 years, 4 months ago (2014-08-18 18:57:22 UTC) #22
Avi (use Gerrit)
LGTM, though it's unfortunate that hash_set is that different across platforms that you need to ...
6 years, 4 months ago (2014-08-18 19:11:00 UTC) #23
erikchen
The CQ bit was checked by erikchen@chromium.org
6 years, 4 months ago (2014-08-18 19:17:24 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/erikchen@chromium.org/454623003/180001
6 years, 4 months ago (2014-08-18 19:19:47 UTC) #25
erikchen
The CQ bit was checked by erikchen@chromium.org
6 years, 4 months ago (2014-08-18 20:50:19 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/erikchen@chromium.org/454623003/200001
6 years, 4 months ago (2014-08-18 20:51:39 UTC) #27
commit-bot: I haz the power
6 years, 4 months ago (2014-08-18 22:38:30 UTC) #28
Message was sent while issue was closed.
Committed patchset #6 (200001) as 290383

Powered by Google App Engine
This is Rietveld 408576698