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

Issue 15647003: Revert 202152 "RulesRegistryWithCache::ProcessChangedRules speed-up" (Closed)

Created:
7 years, 7 months ago by xiyuan
Modified:
7 years, 7 months ago
Reviewers:
vabr (Chromium)
CC:
chromium-reviews
Visibility:
Public.

Description

Revert 202152 "RulesRegistryWithCache::ProcessChangedRules speed-up" > 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 > > Review URL: https://chromiumcodereview.appspot.com/14851011 TBR=vabr@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=202342

Patch Set 1 #

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

Messages

Total messages: 4 (0 generated)
xiyuan
7 years, 7 months ago (2013-05-26 03:17:56 UTC) #1
xiyuan
http://build.chromium.org/p/chromium.chromiumos/builders/Linux%20ChromiumOS%20Tests%20%28dbg%29%282%29/builds/8152 TrayAccessibilityTest.ShowMenu ... [5714:5714:0524/155907:6899660627:FATAL:weak_ptr.cc(20)] Check failed: thread_checker_.CalledOnValidThread() || HasOneRef(). WeakPtrs must be checked and invalidated ...
7 years, 7 months ago (2013-05-26 03:24:26 UTC) #2
xiyuan
Committed patchset #1 manually as r202342.
7 years, 7 months ago (2013-05-26 03:24:53 UTC) #3
vabr (Chromium)
7 years, 7 months ago (2013-05-27 07:29:27 UTC) #4
Message was sent while issue was closed.
On 2013/05/26 03:24:53, xiyuan wrote:
> Committed patchset #1 manually as r202342.

LGTM, thanks for reverting this!

Vaclav

Powered by Google App Engine
This is Rietveld 408576698