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

Issue 2946203002: MD Bookmarks: Batch updates to the UI when processing deletes and moves (Closed)

Created:
3 years, 6 months ago by tsergeant
Modified:
3 years, 5 months ago
Reviewers:
calamity
CC:
chromium-reviews, chrome-apps-syd-reviews_chromium.org, extensions-reviews_chromium.org, jlklein+watch-closure_chromium.org, dcheng, michaelpg+watch-md-ui_chromium.org, arv+watch_chromium.org, vitalyp+closure_chromium.org, chromium-apps-reviews_chromium.org, dbeam+watch-closure_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

MD Bookmarks: Batch updates to the UI when processing API operations In MD Bookmarks, each action processed from the bookmarks API listeners would immediately notify the UI about changes that need to be made. In cases where many notifications are triggered in a row (eg, deleting 100 bookmarks), this would cause many useless UI updates, slowing the page down significantly. This CL adds a 'batch mode' to the data store which suppresses UI notifications while it is active. Enabling batch mode for API operations (move, add, delete) makes these >10x faster with large numbers of nodes. BUG=727177 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation Review-Url: https://codereview.chromium.org/2946203002 Cr-Commit-Position: refs/heads/master@{#482838} Committed: https://chromium.googlesource.com/chromium/src/+/f789a6236652537285fc13dac4cce609e1b94f55

Patch Set 1 #

Total comments: 4

Patch Set 2 : Batch in API listener #

Unified diffs Side-by-side diffs Delta from patch set Stats (+90 lines, -99 lines) Patch
M chrome/browser/resources/md_bookmarks/api_listener.js View 1 4 chunks +24 lines, -0 lines 0 comments Download
M chrome/browser/resources/md_bookmarks/store.js View 3 chunks +22 lines, -1 line 0 comments Download
M chrome/test/data/webui/md_bookmarks/md_bookmarks_browsertest.js View 1 1 chunk +4 lines, -4 lines 0 comments Download
D chrome/test/data/webui/md_bookmarks/store_client_test.js View 1 chunk +0 lines, -94 lines 0 comments Download
A + chrome/test/data/webui/md_bookmarks/store_test.js View 1 chunk +40 lines, -0 lines 0 comments Download

Messages

Total messages: 20 (12 generated)
tsergeant
3 years, 6 months ago (2017-06-21 05:57:02 UTC) #7
calamity
https://codereview.chromium.org/2946203002/diff/1/chrome/browser/resources/md_bookmarks/dnd_manager.js File chrome/browser/resources/md_bookmarks/dnd_manager.js (right): https://codereview.chromium.org/2946203002/diff/1/chrome/browser/resources/md_bookmarks/dnd_manager.js#newcode342 chrome/browser/resources/md_bookmarks/dnd_manager.js:342: chrome.bookmarkManagerPrivate.drop( This works within the BMM, but moving a ...
3 years, 6 months ago (2017-06-22 05:48:27 UTC) #8
tsergeant
https://codereview.chromium.org/2946203002/diff/1/chrome/browser/resources/md_bookmarks/dnd_manager.js File chrome/browser/resources/md_bookmarks/dnd_manager.js (right): https://codereview.chromium.org/2946203002/diff/1/chrome/browser/resources/md_bookmarks/dnd_manager.js#newcode342 chrome/browser/resources/md_bookmarks/dnd_manager.js:342: chrome.bookmarkManagerPrivate.drop( On 2017/06/22 05:48:27, calamity wrote: > This works ...
3 years, 6 months ago (2017-06-23 00:20:20 UTC) #9
calamity
https://codereview.chromium.org/2946203002/diff/1/chrome/browser/resources/md_bookmarks/dnd_manager.js File chrome/browser/resources/md_bookmarks/dnd_manager.js (right): https://codereview.chromium.org/2946203002/diff/1/chrome/browser/resources/md_bookmarks/dnd_manager.js#newcode342 chrome/browser/resources/md_bookmarks/dnd_manager.js:342: chrome.bookmarkManagerPrivate.drop( On 2017/06/23 00:20:20, tsergeant wrote: > On 2017/06/22 ...
3 years, 5 months ago (2017-06-26 03:17:25 UTC) #10
tsergeant
https://codereview.chromium.org/2946203002/diff/1/chrome/browser/resources/md_bookmarks/dnd_manager.js File chrome/browser/resources/md_bookmarks/dnd_manager.js (right): https://codereview.chromium.org/2946203002/diff/1/chrome/browser/resources/md_bookmarks/dnd_manager.js#newcode342 chrome/browser/resources/md_bookmarks/dnd_manager.js:342: chrome.bookmarkManagerPrivate.drop( On 2017/06/26 03:17:24, calamity wrote: > On 2017/06/23 ...
3 years, 5 months ago (2017-06-27 07:35:53 UTC) #12
calamity
Wew. Like it. Lgtm. I'm mildly perturbed that this doesn't break any tests, but I ...
3 years, 5 months ago (2017-06-27 07:53:16 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2946203002/40001
3 years, 5 months ago (2017-06-27 23:50:57 UTC) #17
commit-bot: I haz the power
3 years, 5 months ago (2017-06-28 01:15:39 UTC) #20
Message was sent while issue was closed.
Committed patchset #2 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/f789a6236652537285fc13dac4cc...

Powered by Google App Engine
This is Rietveld 408576698