summaryrefslogtreecommitdiffstats
path: root/media
diff options
context:
space:
mode:
authorrlarocque@chromium.org <rlarocque@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-05-21 21:32:00 +0000
committerrlarocque@chromium.org <rlarocque@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-05-21 21:32:00 +0000
commitdaaab476b5ed7ea502a7d2257a4b03c5186e6583 (patch)
tree13d0581c623779b3681030f7908556e00be3e735 /media
parentbec08429286ff70c2ce5514ba44c8058fc058a27 (diff)
downloadchromium_src-daaab476b5ed7ea502a7d2257a4b03c5186e6583.zip
chromium_src-daaab476b5ed7ea502a7d2257a4b03c5186e6583.tar.gz
chromium_src-daaab476b5ed7ea502a7d2257a4b03c5186e6583.tar.bz2
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 Review URL: https://chromiumcodereview.appspot.com/15308003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@201363 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'media')
0 files changed, 0 insertions, 0 deletions