forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Sync: Avoid 3 passes over SyncDarta DB when loading the directory fro…
…m the disk According to profiling the first two read passes over SyncData DB are from DirectoryBackingStore::DropDeletedEntries. This function executes two SQL queries that drop entries pending deletion. Since it is uncommon to have entries pending deletion it is far more efficient to remove DirectoryBackingStore::DropDeletedEntries and instead check for the entries matching this criteria inside DirectoryBackingStore::LoadEntries, skip those entries from being loaded and put them straight into Directory's metahandles_to_purge collection which sets them up for deletion during a subsequent database save. See the bug for the preliminary performance results. BUG=464073 Review URL: https://codereview.chromium.org/1008103002 Cr-Commit-Position: refs/heads/master@{#320861}
- Loading branch information
stanisc
authored and
Commit bot
committed
Mar 17, 2015
1 parent
69ca664
commit a3ed68b
Showing
18 changed files
with
188 additions
and
75 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.