[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}
Showing
Please register or sign in to comment