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

Issue 29550598: Issue 5735 - Use JS Map instead of Object for Filter.knownFilters (Closed)

Created:
Sept. 20, 2017, 8:20 a.m. by sergei
Modified:
Sept. 26, 2017, 1:58 p.m.
Reviewers:
wspee, kzar, hub, Wladimir Palant
CC:
Felix Dahlke
Base URL:
https://github.com/adblockplus/adblockpluscore.git
Visibility:
Public.

Patch Set 1 #

Total comments: 4

Patch Set 2 : address comments #

Total comments: 7

Patch Set 3 : address comments #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+8 lines, -12 lines) Patch
M lib/filterClasses.js View 1 2 3 chunks +6 lines, -6 lines 1 comment Download
M lib/filterStorage.js View 1 2 chunks +2 lines, -6 lines 0 comments Download

Messages

Total messages: 11
sergei
Sept. 20, 2017, 8:25 a.m. (2017-09-20 08:25:24 UTC) #1
Wladimir Palant
https://codereview.adblockplus.org/29550598/diff/29550599/lib/filterClasses.js File lib/filterClasses.js (right): https://codereview.adblockplus.org/29550598/diff/29550599/lib/filterClasses.js#newcode112 lib/filterClasses.js:112: return Filter.knownFilters.get(text); It makes little sense to have two ...
Sept. 20, 2017, 8:59 a.m. (2017-09-20 08:59:10 UTC) #2
sergei
https://codereview.adblockplus.org/29550598/diff/29550599/lib/filterClasses.js File lib/filterClasses.js (right): https://codereview.adblockplus.org/29550598/diff/29550599/lib/filterClasses.js#newcode112 lib/filterClasses.js:112: return Filter.knownFilters.get(text); On 2017/09/20 08:59:10, Wladimir Palant wrote: > ...
Sept. 20, 2017, 9:22 a.m. (2017-09-20 09:22:40 UTC) #3
Wladimir Palant
https://codereview.adblockplus.org/29550598/diff/29550640/lib/filterClasses.js File lib/filterClasses.js (right): https://codereview.adblockplus.org/29550598/diff/29550640/lib/filterClasses.js#newcode111 lib/filterClasses.js:111: let ret = Filter.knownFilters.get(text); Nit: maybe a more meaningful ...
Sept. 20, 2017, 10:04 a.m. (2017-09-20 10:04:13 UTC) #4
sergei
https://codereview.adblockplus.org/29550598/diff/29550640/lib/filterClasses.js File lib/filterClasses.js (right): https://codereview.adblockplus.org/29550598/diff/29550640/lib/filterClasses.js#newcode111 lib/filterClasses.js:111: let ret = Filter.knownFilters.get(text); On 2017/09/20 10:04:13, Wladimir Palant ...
Sept. 20, 2017, 10:27 a.m. (2017-09-20 10:27:34 UTC) #5
Wladimir Palant
LGTM https://codereview.adblockplus.org/29550598/diff/29550640/lib/filterClasses.js File lib/filterClasses.js (right): https://codereview.adblockplus.org/29550598/diff/29550640/lib/filterClasses.js#newcode111 lib/filterClasses.js:111: let ret = Filter.knownFilters.get(text); On 2017/09/20 10:27:33, sergei ...
Sept. 20, 2017, 10:58 a.m. (2017-09-20 10:58:00 UTC) #6
Wladimir Palant
https://codereview.adblockplus.org/29550598/diff/29550640/lib/filterClasses.js File lib/filterClasses.js (right): https://codereview.adblockplus.org/29550598/diff/29550640/lib/filterClasses.js#newcode82 lib/filterClasses.js:82: * @type {Object} Actually, this needs to be adjusted ...
Sept. 20, 2017, 11 a.m. (2017-09-20 11:00:27 UTC) #7
sergei
https://codereview.adblockplus.org/29550598/diff/29550640/lib/filterClasses.js File lib/filterClasses.js (right): https://codereview.adblockplus.org/29550598/diff/29550640/lib/filterClasses.js#newcode82 lib/filterClasses.js:82: * @type {Object} On 2017/09/20 11:00:27, Wladimir Palant wrote: ...
Sept. 20, 2017, 11:31 a.m. (2017-09-20 11:31:27 UTC) #8
Wladimir Palant
LGTM
Sept. 20, 2017, 11:40 a.m. (2017-09-20 11:40:20 UTC) #9
kzar
LGTM https://codereview.adblockplus.org/29550598/diff/29550640/lib/filterClasses.js File lib/filterClasses.js (right): https://codereview.adblockplus.org/29550598/diff/29550640/lib/filterClasses.js#newcode111 lib/filterClasses.js:111: let ret = Filter.knownFilters.get(text); On 2017/09/20 10:27:33, sergei ...
Sept. 20, 2017, 12:30 p.m. (2017-09-20 12:30:24 UTC) #10
sergei
Sept. 20, 2017, 1:12 p.m. (2017-09-20 13:12:46 UTC) #11
https://codereview.adblockplus.org/29550598/diff/29550640/lib/filterClasses.js
File lib/filterClasses.js (right):

https://codereview.adblockplus.org/29550598/diff/29550640/lib/filterClasses.j...
lib/filterClasses.js:111: let ret = Filter.knownFilters.get(text);
On 2017/09/20 12:30:24, kzar wrote:
> On 2017/09/20 10:27:33, sergei wrote:
> > Is it worth creation of the Noissue review with the renaming to 
> > `filter`?
> 
> Yea I think so, if you don't want to just give it a better name now.

Done in https://codereview.adblockplus.org/29550667/

Powered by Google App Engine
This is Rietveld