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

Issue 29877558: Noissue - Avoid redundant lookup in keyword-by-filter map (Closed)

Created:
Sept. 10, 2018, 12:21 p.m. by Manish Jethani
Modified:
Sept. 19, 2018, 6:47 p.m.
Reviewers:
hub, Jon Sonesen
Base URL:
https://hg.adblockplus.org/adblockpluscore/
Visibility:
Public.

Description

Noissue - Avoid redundant lookup in keyword-by-filter map

Patch Set 1 #

Total comments: 7

Patch Set 2 : Use string comparison #

Total comments: 1

Patch Set 3 : Revert to Patch Set 1 #

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

Messages

Total messages: 17
Manish Jethani
Sept. 10, 2018, 12:21 p.m. (2018-09-10 12:21:53 UTC) #1
Manish Jethani
Patch Set 1 There's no need to call Map.has() when we're going to call Map.get() ...
Sept. 10, 2018, 12:24 p.m. (2018-09-10 12:24:27 UTC) #2
hub
https://codereview.adblockplus.org/29877558/diff/29877559/lib/matcher.js File lib/matcher.js (right): https://codereview.adblockplus.org/29877558/diff/29877559/lib/matcher.js#newcode351 lib/matcher.js:351: return !keyword; Why the `!keyword`. I'd just return the ...
Sept. 13, 2018, 3:52 p.m. (2018-09-13 15:52:40 UTC) #3
Manish Jethani
https://codereview.adblockplus.org/29877558/diff/29877559/lib/matcher.js File lib/matcher.js (right): https://codereview.adblockplus.org/29877558/diff/29877559/lib/matcher.js#newcode351 lib/matcher.js:351: return !keyword; On 2018/09/13 15:52:40, hub wrote: > Why ...
Sept. 14, 2018, 5:28 a.m. (2018-09-14 05:28:32 UTC) #4
hub
https://codereview.adblockplus.org/29877558/diff/29877559/lib/matcher.js File lib/matcher.js (right): https://codereview.adblockplus.org/29877558/diff/29877559/lib/matcher.js#newcode351 lib/matcher.js:351: return !keyword; On 2018/09/14 05:28:32, Manish Jethani wrote: > ...
Sept. 14, 2018, 12:20 p.m. (2018-09-14 12:20:49 UTC) #5
Manish Jethani
https://codereview.adblockplus.org/29877558/diff/29877559/lib/matcher.js File lib/matcher.js (right): https://codereview.adblockplus.org/29877558/diff/29877559/lib/matcher.js#newcode351 lib/matcher.js:351: return !keyword; On 2018/09/14 12:20:49, hub wrote: > On ...
Sept. 14, 2018, 1:36 p.m. (2018-09-14 13:36:25 UTC) #6
Jon Sonesen
https://codereview.adblockplus.org/29877558/diff/29877559/lib/matcher.js File lib/matcher.js (right): https://codereview.adblockplus.org/29877558/diff/29877559/lib/matcher.js#newcode351 lib/matcher.js:351: return !keyword; On 2018/09/14 13:36:25, Manish Jethani wrote: > ...
Sept. 17, 2018, 7:13 p.m. (2018-09-17 19:13:18 UTC) #7
Manish Jethani
https://codereview.adblockplus.org/29877558/diff/29877559/lib/matcher.js File lib/matcher.js (right): https://codereview.adblockplus.org/29877558/diff/29877559/lib/matcher.js#newcode351 lib/matcher.js:351: return !keyword; On 2018/09/17 19:13:18, Jon Sonesen wrote: > ...
Sept. 17, 2018, 11:36 p.m. (2018-09-17 23:36:35 UTC) #8
Jon Sonesen
On 2018/09/17 23:36:35, Manish Jethani wrote: > https://codereview.adblockplus.org/29877558/diff/29877559/lib/matcher.js > File lib/matcher.js (right): > > https://codereview.adblockplus.org/29877558/diff/29877559/lib/matcher.js#newcode351 ...
Sept. 18, 2018, 7:14 a.m. (2018-09-18 07:14:26 UTC) #9
hub
https://codereview.adblockplus.org/29877558/diff/29877559/lib/matcher.js File lib/matcher.js (right): https://codereview.adblockplus.org/29877558/diff/29877559/lib/matcher.js#newcode351 lib/matcher.js:351: return !keyword; On 2018/09/17 23:36:35, Manish Jethani wrote: > ...
Sept. 18, 2018, 12:19 p.m. (2018-09-18 12:19:40 UTC) #10
Manish Jethani
Patch Set 2: Use string comparison OK, using string comparison now. It shouldn't make a ...
Sept. 18, 2018, 12:39 p.m. (2018-09-18 12:39:15 UTC) #11
Manish Jethani
https://codereview.adblockplus.org/29877558/diff/29884560/lib/matcher.js File lib/matcher.js (right): https://codereview.adblockplus.org/29877558/diff/29884560/lib/matcher.js#newcode351 lib/matcher.js:351: return keyword == ""; Well hold on, if we ...
Sept. 18, 2018, 2:10 p.m. (2018-09-18 14:10:26 UTC) #12
Jon Sonesen
On 2018/09/18 14:10:26, Manish Jethani wrote: > https://codereview.adblockplus.org/29877558/diff/29884560/lib/matcher.js > File lib/matcher.js (right): > > https://codereview.adblockplus.org/29877558/diff/29884560/lib/matcher.js#newcode351 ...
Sept. 19, 2018, 4:12 p.m. (2018-09-19 16:12:20 UTC) #13
Jon Sonesen
On 2018/09/18 14:10:26, Manish Jethani wrote: > https://codereview.adblockplus.org/29877558/diff/29884560/lib/matcher.js > File lib/matcher.js (right): > > https://codereview.adblockplus.org/29877558/diff/29884560/lib/matcher.js#newcode351 ...
Sept. 19, 2018, 4:12 p.m. (2018-09-19 16:12:21 UTC) #14
Jon Sonesen
On 2018/09/19 16:12:21, Jon Sonesen wrote: > On 2018/09/18 14:10:26, Manish Jethani wrote: > > ...
Sept. 19, 2018, 4:13 p.m. (2018-09-19 16:13:22 UTC) #15
Manish Jethani
Jon, can you give a quick LGTM for formality sake? I've reverted to PS1.
Sept. 19, 2018, 6:02 p.m. (2018-09-19 18:02:23 UTC) #16
Jon Sonesen
Sept. 19, 2018, 6:36 p.m. (2018-09-19 18:36:49 UTC) #17
On 2018/09/19 18:02:23, Manish Jethani wrote:
> Jon, can you give a quick LGTM for formality sake? I've reverted to PS1.

Sure! LGTM

Powered by Google App Engine
This is Rietveld