DescriptionSync: Perf: Optimize handing FavIcon callbacks in BookmarkChangeProcessor
This change improves responsiveness of chrome UI thread by eliminating wasted work that BookmarkChangeProcessor
does in BookmarkNodeFaviconChanged in a scenario when user initially connects sync to an account with a large
number of bookmarks. This is achieved by ignoring the notification earlier when there is no FavIcon image, before doing any expensive work. Please note that the notification is called twice for each bookmark - first when a change in FavIcon is detected and then when the icon is uploaded to the bookmark model. The change cuts the work associated with the first call on the sync side.
Estimated saving on the UI thread is about 10-12% (as measured by reduction of samples in sampling profile).
BUG=239621
Committed: https://crrev.com/d38ccdc3e21501cc81753431ececd0856df87f7c
Cr-Commit-Position: refs/heads/master@{#302685}
Patch Set 1 : #
Total comments: 8
Patch Set 2 : Limit the change to the FavIcon check in BookmarkChangeProcessor::BookmarkNodeFaviconChanged #Messages
Total messages: 12 (3 generated)
|