cros: Defer init of background panes in Shortcut Viewer
Most of the startup time of Shortcut Viewer is spent to layout the text. This patch only layouts the shortcuts list in the first category and layouts other categories panes in the background. When tested on Linux build: The CreateWidget wall duration is reduced from 403ms to 137ms. The StartupTime is reduced from 1100ms to 900ms. Tested on Eve: The CreateWidget wall duration is reduced from 224ms to 73ms. The StartupTime is reduced from 529ms to 297ms. Bug: 849413 Test: manual. Change-Id: Ia59a90b4eec9c12ba5846883501ee73e8afc8a59 Reviewed-on: https://chromium-review.googlesource.com/1150775 Commit-Queue: Tao Wu <wutao@chromium.org> Reviewed-by:James Cook <jamescook@chromium.org> Cr-Commit-Position: refs/heads/master@{#579130}
Showing
Please register or sign in to comment