forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MD Extensions: Never reset the array of apps/extensions dom-repeat.
Using dom-repeat's filter functionality to implement filtering, as opposed to manually resetting the array. As a result: - The list of apps/extensions is not unnecessarily re-rendered when any item is updated (for example enabled/disabled). Only the modified item is updated. - Allows using dom-repeat's chunked rendering (initial-count) without triggering accidental re-renders. This change improves FMP by about 12% on my machine (with 30 extensions+apps). Bug: 782514 Cq-Include-Trybots: master.tryserver.chromium.linux:closure_compilation Change-Id: Ica14de4d71442b9980dcf3290eb8e9caaf5772af Reviewed-on: https://chromium-review.googlesource.com/759739 Reviewed-by: Dave Schuyler <dschuyler@chromium.org> Commit-Queue: Demetrios Papadopoulos <dpapad@chromium.org> Cr-Commit-Position: refs/heads/master@{#515619}
- Loading branch information
Showing
3 changed files
with
43 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters