Description[subresource_filter] Index activation rules separately.
This CL adds a separate index for activation rules. This drastically increases
speed of IndexedRuleset::ShouldDisableFilteringForDocument, because currently
there are only about 20 rules with activation options, as opposed to tens of
thousands URL rules total in the ruleset. Ultimately, this change makes
computing activation states for subdocuments very fast.
Memory footprint added by the new index is less than a kilobyte.
BUG=708458
Review-Url: https://codereview.chromium.org/2797133006
Cr-Commit-Position: refs/heads/master@{#462825}
Committed: https://chromium.googlesource.com/chromium/src/+/986188a907c91d38938e24604f7b4397fdaaff75
Patch Set 1 #Patch Set 2 : Clean up. #Patch Set 3 : Make Windows builder happy. #
Total comments: 5
Patch Set 4 : Add unittest. #
Messages
Total messages: 27 (18 generated)
|