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

Issue 270363003: Reduce footprint of registry controlled domain table (Closed)

Created:
6 years, 7 months ago by Ryan Sleevi
Modified:
6 years, 7 months ago
Reviewers:
Olle Liljenzin, brettw
CC:
chromium-reviews, cbentzel+watch_chromium.org
Visibility:
Public.

Description

Reduce footprint of registry controlled domain table The perfect hash table containing all registry controlled domains is replaced by a compact graph (a dafsa) to reduce binary size and PSS of the running process. Size of the new structure is about 33kB compared to 380kB for the perfect hash table. Patch by Olle Liljenzin <ollel@opera.com>;, originally at https://codereview.chromium.org/197183002/ BUG=370672 R=brettw@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=270039

Patch Set 1 #

Patch Set 2 : GN attempt #1 #

Patch Set 3 : GN fixed #

Total comments: 5

Patch Set 4 : Review feedback #

Total comments: 2

Patch Set 5 : More review feedback #

Unified diffs Side-by-side diffs Delta from patch set Stats (+2227 lines, -461 lines) Patch
M net/BUILD.gn View 1 2 3 4 1 chunk +2 lines, -1 line 0 comments Download
A net/base/registry_controlled_domains/BUILD.gn View 1 2 3 4 1 chunk +23 lines, -0 lines 0 comments Download
D net/base/registry_controlled_domains/effective_tld_names_unittest1.cc View 1 2 3 4 1 chunk +0 lines, -218 lines 0 comments Download
D net/base/registry_controlled_domains/effective_tld_names_unittest2.cc View 1 2 3 4 1 chunk +0 lines, -161 lines 0 comments Download
A net/base/registry_controlled_domains/effective_tld_names_unittest3.gperf View 1 2 3 4 1 chunk +13 lines, -0 lines 0 comments Download
A net/base/registry_controlled_domains/effective_tld_names_unittest4.gperf View 1 2 3 4 1 chunk +523 lines, -0 lines 0 comments Download
A net/base/registry_controlled_domains/effective_tld_names_unittest5.gperf View 1 2 3 4 1 chunk +9 lines, -0 lines 0 comments Download
A net/base/registry_controlled_domains/effective_tld_names_unittest6.gperf View 1 2 3 4 1 chunk +9 lines, -0 lines 0 comments Download
M net/base/registry_controlled_domains/registry_controlled_domain.h View 1 2 3 4 1 chunk +5 lines, -4 lines 0 comments Download
M net/base/registry_controlled_domains/registry_controlled_domain.cc View 1 2 3 4 3 chunks +175 lines, -50 lines 0 comments Download
M net/base/registry_controlled_domains/registry_controlled_domain_unittest.cc View 1 2 3 4 7 chunks +166 lines, -18 lines 0 comments Download
M net/net.gyp View 1 2 3 4 3 chunks +39 lines, -1 line 0 comments Download
A net/tools/tld_cleanup/PRESUBMIT.py View 1 2 3 4 1 chunk +32 lines, -0 lines 0 comments Download
M net/tools/tld_cleanup/README View 1 2 3 4 1 chunk +5 lines, -8 lines 0 comments Download
A net/tools/tld_cleanup/make_dafsa.py View 1 2 3 4 1 chunk +469 lines, -0 lines 0 comments Download
A net/tools/tld_cleanup/make_dafsa_unittest.py View 1 2 3 4 1 chunk +757 lines, -0 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
Ryan Sleevi
Brett: Please review the GN changes ollel: FYI
6 years, 7 months ago (2014-05-07 19:17:54 UTC) #1
brettw
GN LGTM https://codereview.chromium.org/270363003/diff/20001/net/BUILD.gn File net/BUILD.gn (right): https://codereview.chromium.org/270363003/diff/20001/net/BUILD.gn#newcode66 net/BUILD.gn:66: include_dirs = [ "${root_gen_dir}/net" ] If possible, ...
6 years, 7 months ago (2014-05-07 19:50:11 UTC) #2
Ryan Sleevi
brettw: Updated the .gn and .gyp files to match your feedback. Please take another look ...
6 years, 7 months ago (2014-05-07 22:54:24 UTC) #3
brettw
https://codereview.chromium.org/270363003/diff/30001/net/BUILD.gn File net/BUILD.gn (right): https://codereview.chromium.org/270363003/diff/30001/net/BUILD.gn#newcode77 net/BUILD.gn:77: "${root_gen_dir}/net/base/registry_controlled_domains/{{source_name_part}}-inc.cc" On 2014/05/07 22:54:25, Ryan Sleevi wrote: > It'd ...
6 years, 7 months ago (2014-05-07 23:53:58 UTC) #4
Ryan Sleevi
On 2014/05/07 23:53:58, brettw wrote: > https://codereview.chromium.org/270363003/diff/30001/net/BUILD.gn > File net/BUILD.gn (right): > > https://codereview.chromium.org/270363003/diff/30001/net/BUILD.gn#newcode77 > ...
6 years, 7 months ago (2014-05-08 00:09:58 UTC) #5
brettw
On 2014/05/08 00:09:58, Ryan Sleevi wrote: > On 2014/05/07 23:53:58, brettw wrote: > > https://codereview.chromium.org/270363003/diff/30001/net/BUILD.gn ...
6 years, 7 months ago (2014-05-08 19:41:01 UTC) #6
Ryan Sleevi
6 years, 7 months ago (2014-05-13 07:01:40 UTC) #7
Message was sent while issue was closed.
Committed patchset #5 manually as r270039 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698