Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Issue 29965589: Issue 7181 - Keep a keyword-by-filter map after all (Closed)

Created:
Dec. 19, 2018, 6:24 p.m. by Manish Jethani
Modified:
Dec. 20, 2018, 11:13 a.m.
Reviewers:
kzar
Base URL:
https://hg.adblockplus.org/adblockpluscore/
Visibility:
Public.

Description

This reverts some part of the changes for this issue. Basically we need to remember the keyword by which a filter was added so we can remove it later by the same keyword. We also need to ensure that the same filter is not added twice. This will add again ~2 MB to the memory footprint for EasyList+AA. I'll try to think of a better way to do this, but this is it for now.

Patch Set 1 #

Patch Set 2 : Clear map #

Patch Set 3 : Rename to _keywordByFilter #

Unified diffs Side-by-side diffs Delta from patch set Stats (+41 lines, -1 line) Patch
M lib/matcher.js View 1 2 3 chunks +19 lines, -1 line 0 comments Download
M test/matcher.js View 1 chunk +22 lines, -0 lines 0 comments Download

Messages

Total messages: 7
Manish Jethani
Dec. 19, 2018, 6:24 p.m. (2018-12-19 18:24:33 UTC) #1
Manish Jethani
Patch Set 1
Dec. 19, 2018, 6:28 p.m. (2018-12-19 18:28:37 UTC) #2
kzar
LGTM
Dec. 20, 2018, 10:15 a.m. (2018-12-20 10:15:41 UTC) #3
kzar
(But please remember to change issue number in commit message to #7181 before pushing.)
Dec. 20, 2018, 10:16 a.m. (2018-12-20 10:16:10 UTC) #4
Manish Jethani
On 2018/12/20 10:16:10, kzar wrote: > (But please remember to change issue number in commit ...
Dec. 20, 2018, 10:51 a.m. (2018-12-20 10:51:57 UTC) #5
Manish Jethani
Patch Set 2: Clear map Sorry, I forgot this part. We need to clear the ...
Dec. 20, 2018, 11:01 a.m. (2018-12-20 11:01:07 UTC) #6
kzar
Dec. 20, 2018, 11:10 a.m. (2018-12-20 11:10:24 UTC) #7
LGTM

Powered by Google App Engine
This is Rietveld