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

Issue 2796133002: [subresource_filter] Don't store no-op rules in IndexedRuleset. (Closed)

Created:
3 years, 8 months ago by pkalinnikov
Modified:
3 years, 8 months ago
CC:
chromium-reviews, subresource-filter-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

[subresource_filter] Don't store no-op rules in IndexedRuleset. Currently there are more than 1000 URL rules wasting space because they are not supported. These are a few rules with REGEXP pattern type, and lots of popup-only filtering rules, as well as 500+ rules controlling activation of CSS filtering. This CL removes such rules from IndexedRuleset, reducing its size by ~75 kB. BUG=708458 Review-Url: https://codereview.chromium.org/2796133002 Cr-Commit-Position: refs/heads/master@{#462397} Committed: https://chromium.googlesource.com/chromium/src/+/c4b33b2fe691abd42aeeaf5489a68bd5b53b2e08

Patch Set 1 #

Patch Set 2 : Update format version. #

Patch Set 3 : Fix tests; add new tests. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+44 lines, -17 lines) Patch
M components/subresource_filter/core/common/indexed_ruleset.cc View 1 5 chunks +16 lines, -2 lines 0 comments Download
M components/subresource_filter/core/common/indexed_ruleset_unittest.cc View 1 2 5 chunks +28 lines, -15 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 27 (18 generated)
pkalinnikov
PTAL.
3 years, 8 months ago (2017-04-04 17:07:40 UTC) #5
Charlie Harrison
Could you add a BUG= (is there a tracking bug for keeping indexed ruleset lean?) ...
3 years, 8 months ago (2017-04-04 17:15:50 UTC) #9
engedy
On 2017/04/04 17:15:50, Charlie Harrison wrote: > Could you add a BUG= (is there a ...
3 years, 8 months ago (2017-04-05 09:35:52 UTC) #12
pkalinnikov
Addressed the concerns, thanks! PTAL again.
3 years, 8 months ago (2017-04-05 13:54:14 UTC) #17
Charlie Harrison
It lgtm
3 years, 8 months ago (2017-04-05 20:15:05 UTC) #20
pkalinnikov
Thanks! Balazs, can you also take a quick look?
3 years, 8 months ago (2017-04-06 08:24:57 UTC) #21
engedy
On 2017/04/06 08:24:57, pkalinnikov wrote: > Thanks! Balazs, can you also take a quick look? ...
3 years, 8 months ago (2017-04-06 08:36:10 UTC) #22
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/2796133002/40001
3 years, 8 months ago (2017-04-06 08:37:05 UTC) #24
commit-bot: I haz the power
3 years, 8 months ago (2017-04-06 08:43:05 UTC) #27
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/c4b33b2fe691abd42aeeaf5489a6...

Powered by Google App Engine
This is Rietveld 408576698