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

Issue 29716641: Issue 6437 - Cache pattern attributes (Closed)

Created:
March 7, 2018, 5:47 p.m. by Manish Jethani
Modified:
March 8, 2018, 9:09 p.m.
Reviewers:
kzar, hub
CC:
sergei
Base URL:
https://hg.adblockplus.org/adblockpluscore/
Visibility:
Public.

Description

This builds on https://codereview.adblockplus.org/29713565/ Since pattern objects are immutable, we can cache the values of their computed attributes.

Patch Set 1 #

Total comments: 2

Patch Set 2 : Do not use in operator #

Unified diffs Side-by-side diffs Delta from patch set Stats (+90 lines, -53 lines) Patch
M lib/content/elemHideEmulation.js View 1 6 chunks +90 lines, -53 lines 0 comments Download

Messages

Total messages: 9
Manish Jethani
March 7, 2018, 5:47 p.m. (2018-03-07 17:47:13 UTC) #1
Manish Jethani
Patch Set 1
March 7, 2018, 5:51 p.m. (2018-03-07 17:51:09 UTC) #2
hub
I am of the opinion that this should be part of https://codereview.adblockplus.org/29712655/
March 7, 2018, 7:49 p.m. (2018-03-07 19:49:02 UTC) #3
hub
https://codereview.adblockplus.org/29716641/diff/29716642/lib/content/elemHideEmulation.js File lib/content/elemHideEmulation.js (right): https://codereview.adblockplus.org/29716641/diff/29716642/lib/content/elemHideEmulation.js#newcode43 lib/content/elemHideEmulation.js:43: return object[name]; here I would rather do something like: ...
March 7, 2018, 11:11 p.m. (2018-03-07 23:11:30 UTC) #4
Manish Jethani
Patch Set 2: Do not use in operator https://codereview.adblockplus.org/29716641/diff/29716642/lib/content/elemHideEmulation.js File lib/content/elemHideEmulation.js (right): https://codereview.adblockplus.org/29716641/diff/29716642/lib/content/elemHideEmulation.js#newcode43 lib/content/elemHideEmulation.js:43: return ...
March 8, 2018, 3:29 p.m. (2018-03-08 15:29:58 UTC) #5
Manish Jethani
On 2018/03/07 19:49:02, hub wrote: > I am of the opinion that this should be ...
March 8, 2018, 3:31 p.m. (2018-03-08 15:31:46 UTC) #6
hub
On 2018/03/08 15:31:46, Manish Jethani wrote: > On 2018/03/07 19:49:02, hub wrote: > > I ...
March 8, 2018, 4:39 p.m. (2018-03-08 16:39:59 UTC) #7
Manish Jethani
On 2018/03/08 16:39:59, hub wrote: > On 2018/03/08 15:31:46, Manish Jethani wrote: > > On ...
March 8, 2018, 4:41 p.m. (2018-03-08 16:41:01 UTC) #8
Manish Jethani
March 8, 2018, 9:09 p.m. (2018-03-08 21:09:26 UTC) #9
On 2018/03/08 16:41:01, Manish Jethani wrote:
> On 2018/03/08 16:39:59, hub wrote:
> > On 2018/03/08 15:31:46, Manish Jethani wrote:
> > > On 2018/03/07 19:49:02, hub wrote:
> > > > I am of the opinion that this should be part of
> > > > https://codereview.adblockplus.org/29712655/
> > > 
> > > I could merge the two patches, but wouldn't it be too much to review at
> once?
> > > 
> > > If you want I could just rebase this one on that one but keep it separate
> > still.
> > 
> > It wouldn't be too big (I think), but it you prefer like this, it's fine. My
> > biggest concern is performance, and I had concerns until this. If they all
> land
> > together, no one will notice. :-)
> 
> Sounds good, let me merge them then before you take another look.

Merged into #29712655.

Powered by Google App Engine
This is Rietveld