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

Issue 15308003: sync: Test and improve bookmark performance (Closed)

Created:
7 years, 7 months ago by rlarocque
Modified:
7 years, 7 months ago
CC:
chromium-reviews, Raghu Simha, haitaol1, akalin
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

sync: Test and improve bookmark performance This commit adds a test for bookmark model association. It's not a great test in terms of code coverage, but it's possible to turn it into a useful benchmark by changing the kNumBookmarksPerFolder and kNumFolders constants. Also included in this commit is a small change to the WriteTransaction's SaveOriginal method. The old code created a temporary EntryKernelMutation, which had to be cleaned up as it went out of scope. It turns out that destroying the four EntitySpecifics objects it contains can be pretty expensive. The performance impact isn't huge, but it is visible in the profiling results. Since the fix is so trivial, the cost-benefit tradeoff is pretty clearly in favor of fixing this. BUG=241813, 238621 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=201363

Patch Set 1 #

Total comments: 2

Patch Set 2 : Add comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+89 lines, -3 lines) Patch
M chrome/browser/sync/profile_sync_service_bookmark_unittest.cc View 1 3 chunks +88 lines, -0 lines 0 comments Download
M sync/syncable/syncable_write_transaction.cc View 1 chunk +1 line, -3 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
rlarocque
Please review. The tests and the fix probably could be split out into separate commits, ...
7 years, 7 months ago (2013-05-17 22:37:54 UTC) #1
tim (not reviewing)
On 2013/05/17 22:37:54, rlarocque wrote: > Please review. > > The tests and the fix ...
7 years, 7 months ago (2013-05-19 20:56:44 UTC) #2
rlarocque
On 2013/05/19 20:56:44, timsteele wrote: > On 2013/05/17 22:37:54, rlarocque wrote: > > Please review. ...
7 years, 7 months ago (2013-05-20 17:20:57 UTC) #3
tim (not reviewing)
On 2013/05/20 17:20:57, rlarocque wrote: > On 2013/05/19 20:56:44, timsteele wrote: > > On 2013/05/17 ...
7 years, 7 months ago (2013-05-20 17:39:03 UTC) #4
rlarocque
On 2013/05/20 17:39:03, timsteele wrote: > On 2013/05/20 17:20:57, rlarocque wrote: > > On 2013/05/19 ...
7 years, 7 months ago (2013-05-20 18:22:48 UTC) #5
tim (not reviewing)
Oops, I had left behind an unpublished comment. Have you seen ProfileSyncServiceBookmarkTestWithData.MergeWithEmptyBookmarkModel ? https://codereview.chromium.org/15308003/diff/1/chrome/browser/sync/profile_sync_service_bookmark_unittest.cc File ...
7 years, 7 months ago (2013-05-20 18:26:20 UTC) #6
rlarocque
https://codereview.chromium.org/15308003/diff/1/chrome/browser/sync/profile_sync_service_bookmark_unittest.cc File chrome/browser/sync/profile_sync_service_bookmark_unittest.cc (right): https://codereview.chromium.org/15308003/diff/1/chrome/browser/sync/profile_sync_service_bookmark_unittest.cc#newcode293 chrome/browser/sync/profile_sync_service_bookmark_unittest.cc:293: int64 AddFolderToShare(syncer::WriteTransaction* trans, std::string title) { On 2013/05/20 18:26:20, ...
7 years, 7 months ago (2013-05-20 20:09:54 UTC) #7
rlarocque
On 2013/05/20 18:26:20, timsteele wrote: > Oops, I had left behind an unpublished comment. > ...
7 years, 7 months ago (2013-05-20 20:18:03 UTC) #8
tim (not reviewing)
On 2013/05/20 20:18:03, rlarocque wrote: > On 2013/05/20 18:26:20, timsteele wrote: > > Oops, I ...
7 years, 7 months ago (2013-05-20 20:41:56 UTC) #9
rlarocque
On 2013/05/20 20:41:56, timsteele wrote: > On 2013/05/20 20:18:03, rlarocque wrote: > > On 2013/05/20 ...
7 years, 7 months ago (2013-05-21 00:18:46 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rlarocque@chromium.org/15308003/12001
7 years, 7 months ago (2013-05-21 17:59:23 UTC) #11
commit-bot: I haz the power
7 years, 7 months ago (2013-05-21 21:32:01 UTC) #12
Message was sent while issue was closed.
Change committed as 201363

Powered by Google App Engine
This is Rietveld 408576698