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

Issue 2701123002: AppList Performance Optimization 2 (Closed)

Created:
3 years, 10 months ago by afakhry
Modified:
3 years, 9 months ago
Reviewers:
xiyuan
CC:
chromium-reviews, extensions-reviews_chromium.org, tfarina, tdresser+watch_chromium.org, Matt Giuca, chromium-apps-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

AppList Performance Optimization 2 CL number 2 in a series of CLs to optimize the creation and showing of Chrome OS App Launcher. This CL modernizes the code, and removes a lot of wasted cycles. CPU Duration savings in creating and showing the launcher for the first time after login: On peach_pit: - Old: 39 ms. - New: 34 ms. On kevin: - Old: 46 ms. - New: 40 ms. BUG=631516 Review-Url: https://codereview.chromium.org/2701123002 Cr-Commit-Position: refs/heads/master@{#453267} Committed: https://chromium.googlesource.com/chromium/src/+/7f63839ce573ecdf7628f68a6d7434bf53e282f9

Patch Set 1 #

Patch Set 2 : Rebase improve #

Patch Set 3 : RFR #

Patch Set 4 : Fix unit-tests compile error #

Patch Set 5 : Fix browser_tests compile error #

Total comments: 18

Patch Set 6 : Xiyuan's comments #

Patch Set 7 : Cache the tokenized name #

Unified diffs Side-by-side diffs Delta from patch set Stats (+149 lines, -137 lines) Patch
M chrome/browser/ui/app_list/search/app_search_provider.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/app_list/search/app_search_provider.cc View 1 2 3 4 5 6 10 chunks +53 lines, -42 lines 0 comments Download
M chrome/browser/ui/app_list/search/app_search_provider_unittest.cc View 1 2 3 1 chunk +2 lines, -3 lines 0 comments Download
M chrome/browser/ui/app_list/search/arc_app_result.cc View 1 chunk +3 lines, -3 lines 0 comments Download
M chrome/browser/ui/app_list/search/extension_app_result.cc View 1 chunk +3 lines, -3 lines 0 comments Download
M chrome/browser/ui/app_list/search/launcher_search/launcher_search_provider.cc View 1 2 chunks +5 lines, -4 lines 0 comments Download
M chrome/browser/ui/app_list/search/omnibox_provider.cc View 1 1 chunk +8 lines, -9 lines 0 comments Download
M chrome/browser/ui/app_list/search/search_controller_factory.cc View 1 2 3 4 chunks +23 lines, -23 lines 0 comments Download
M chrome/browser/ui/app_list/search/suggestions/suggestions_search_provider_unittest.cc View 1 2 3 4 5 1 chunk +4 lines, -3 lines 0 comments Download
M chrome/browser/ui/app_list/search/webstore/webstore_provider.cc View 2 chunks +3 lines, -4 lines 0 comments Download
M chrome/browser/ui/app_list/search/webstore/webstore_provider_browsertest.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M ui/app_list/search/mixer.cc View 1 2 3 4 5 7 chunks +14 lines, -16 lines 0 comments Download
M ui/app_list/search/tokenized_string.cc View 1 chunk +3 lines, -3 lines 0 comments Download
M ui/app_list/search_controller.h View 1 2 3 4 5 3 chunks +2 lines, -3 lines 0 comments Download
M ui/app_list/search_controller.cc View 4 chunks +7 lines, -12 lines 0 comments Download
M ui/app_list/search_provider.h View 1 2 3 4 5 3 chunks +9 lines, -3 lines 0 comments Download
M ui/app_list/search_provider.cc View 1 1 chunk +6 lines, -1 line 0 comments Download
M ui/app_list/views/start_page_view.cc View 1 2 4 chunks +2 lines, -3 lines 0 comments Download

Messages

Total messages: 40 (32 generated)
afakhry
Xiyuan, this is the second CL in the series. Can you please take a look? ...
3 years, 10 months ago (2017-02-22 21:09:32 UTC) #22
xiyuan
Mostly nits https://codereview.chromium.org/2701123002/diff/100001/chrome/browser/ui/app_list/search/app_search_provider.cc File chrome/browser/ui/app_list/search/app_search_provider.cc (right): https://codereview.chromium.org/2701123002/diff/100001/chrome/browser/ui/app_list/search/app_search_provider.cc#newcode65 chrome/browser/ui/app_list/search/app_search_provider.cc:65: name_(base::UTF8ToUTF16(name)), We could even defer UTF8ToUTF16, right? ...
3 years, 10 months ago (2017-02-23 01:38:15 UTC) #23
afakhry
https://codereview.chromium.org/2701123002/diff/100001/chrome/browser/ui/app_list/search/app_search_provider.cc File chrome/browser/ui/app_list/search/app_search_provider.cc (right): https://codereview.chromium.org/2701123002/diff/100001/chrome/browser/ui/app_list/search/app_search_provider.cc#newcode65 chrome/browser/ui/app_list/search/app_search_provider.cc:65: name_(base::UTF8ToUTF16(name)), On 2017/02/23 01:38:14, xiyuan wrote: > We could ...
3 years, 10 months ago (2017-02-23 17:04:22 UTC) #25
xiyuan
https://codereview.chromium.org/2701123002/diff/100001/chrome/browser/ui/app_list/search/app_search_provider.cc File chrome/browser/ui/app_list/search/app_search_provider.cc (right): https://codereview.chromium.org/2701123002/diff/100001/chrome/browser/ui/app_list/search/app_search_provider.cc#newcode65 chrome/browser/ui/app_list/search/app_search_provider.cc:65: name_(base::UTF8ToUTF16(name)), On 2017/02/23 17:04:22, afakhry wrote: > On 2017/02/23 ...
3 years, 10 months ago (2017-02-24 05:59:46 UTC) #29
afakhry
https://codereview.chromium.org/2701123002/diff/100001/chrome/browser/ui/app_list/search/app_search_provider.cc File chrome/browser/ui/app_list/search/app_search_provider.cc (right): https://codereview.chromium.org/2701123002/diff/100001/chrome/browser/ui/app_list/search/app_search_provider.cc#newcode74 chrome/browser/ui/app_list/search/app_search_provider.cc:74: return base::MakeUnique<TokenizedString>(name_); On 2017/02/24 05:59:46, xiyuan (ooo) wrote: > ...
3 years, 10 months ago (2017-02-24 19:20:47 UTC) #32
xiyuan
lgtm
3 years, 9 months ago (2017-02-27 17:56:54 UTC) #35
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/2701123002/140001
3 years, 9 months ago (2017-02-27 18:00:08 UTC) #37
commit-bot: I haz the power
3 years, 9 months ago (2017-02-27 18:35:23 UTC) #40
Message was sent while issue was closed.
Committed patchset #7 (id:140001) as
https://chromium.googlesource.com/chromium/src/+/7f63839ce573ecdf7628f68a6d74...

Powered by Google App Engine
This is Rietveld 408576698