Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(646)

Issue 14851011: RulesRegistryWithCache::ProcessChangedRules speed-up (Closed)

Created:
7 years, 7 months ago by vabr (Chromium)
Modified:
7 years, 7 months ago
Reviewers:
vabr (Chromium), battre
CC:
chromium-reviews, Aaron Boodman, chromium-apps-reviews_chromium.org
Visibility:
Public.

Description

RulesRegistryWithCache::ProcessChangedRules speed-up Postpone rules->value conversion: Currently the rules are converted to base::Value on the rules registry thread before ProcessChangedRules finishes, and then a task is posted to UI which will trigger writing that to a rule store on yet another thread. This CL postpones the conversion to the task running on UI thread. This change cuts down the running time for AddRules to 75%, but of course this is cheating, since the work only gets done later. The point is, however, that network requests are not blocked until the rules are written. BUG=236368 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=202152

Patch Set 1 #

Total comments: 1

Patch Set 2 : Revert splitting rules_ #

Patch Set 3 : ProcessedChangedRules back on RR thread but postponed #

Patch Set 4 : Fixing the uninitialised WeakPtrFactory #

Unified diffs Side-by-side diffs Delta from patch set Stats (+31 lines, -5 lines) Patch
M chrome/browser/extensions/api/declarative/rules_registry_with_cache.h View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/extensions/api/declarative/rules_registry_with_cache.cc View 1 2 3 7 chunks +27 lines, -5 lines 0 comments Download

Messages

Total messages: 14 (0 generated)
vabr (Chromium)
Hi Dominic, Another review for you :). Now I pretty much agree that writing the ...
7 years, 7 months ago (2013-05-07 16:10:02 UTC) #1
battre
https://codereview.chromium.org/14851011/diff/1/chrome/browser/extensions/api/declarative/rules_registry_with_cache.h File chrome/browser/extensions/api/declarative/rules_registry_with_cache.h (right): https://codereview.chromium.org/14851011/diff/1/chrome/browser/extensions/api/declarative/rules_registry_with_cache.h#newcode180 chrome/browser/extensions/api/declarative/rules_registry_with_cache.h:180: std::map<ExtensionId, RulesDictionary> rules_; This variable is going to be ...
7 years, 7 months ago (2013-05-07 16:22:09 UTC) #2
vabr (Chromium)
On 2013/05/07 16:22:09, battre wrote: > https://codereview.chromium.org/14851011/diff/1/chrome/browser/extensions/api/declarative/rules_registry_with_cache.h > File chrome/browser/extensions/api/declarative/rules_registry_with_cache.h > (right): > > https://codereview.chromium.org/14851011/diff/1/chrome/browser/extensions/api/declarative/rules_registry_with_cache.h#newcode180 ...
7 years, 7 months ago (2013-05-07 16:40:41 UTC) #3
battre
Sorry for the delay. I think the CL description needs to be updated. Overall, I ...
7 years, 7 months ago (2013-05-14 09:54:29 UTC) #4
vabr (Chromium)
Thanks, Dominic. On 2013/05/14 09:54:29, battre wrote: > Sorry for the delay. > > I ...
7 years, 7 months ago (2013-05-14 13:55:23 UTC) #5
vabr (Chromium)
Hi Dominic, This CL appears to have been forgotten. Which of the 3 suggestions below ...
7 years, 7 months ago (2013-05-23 09:34:47 UTC) #6
battre
Sorry for the delay. I think that processing on the UI thread is not good. ...
7 years, 7 months ago (2013-05-24 09:36:49 UTC) #7
vabr (Chromium)
On 2013/05/24 09:36:49, battre wrote: > Sorry for the delay. I think that processing on ...
7 years, 7 months ago (2013-05-24 11:21:09 UTC) #8
battre
lgtm
7 years, 7 months ago (2013-05-24 11:46:10 UTC) #9
battre
On 2013/05/24 11:46:10, battre wrote: > lgtm Uh... check out the unit tests... Maybe that ...
7 years, 7 months ago (2013-05-24 11:46:43 UTC) #10
vabr (Chromium)
On 2013/05/24 11:46:43, battre wrote: > On 2013/05/24 11:46:10, battre wrote: > > lgtm > ...
7 years, 7 months ago (2013-05-24 14:44:18 UTC) #11
battre
I agree. LGTM
7 years, 7 months ago (2013-05-24 14:58:16 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/vabr@chromium.org/14851011/31001
7 years, 7 months ago (2013-05-24 15:18:49 UTC) #13
commit-bot: I haz the power
7 years, 7 months ago (2013-05-24 19:58:44 UTC) #14
Message was sent while issue was closed.
Change committed as 202152

Powered by Google App Engine
This is Rietveld 408576698