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

Unified Diff: metadata.cc

Issue 6014014: Revert "Break metadata into smaller chunks (number of chunks=10) for faster delta generation." (Closed) Base URL: http://git.chromium.org/git/update_engine.git@master
Patch Set: Created 9 years, 12 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: metadata.cc
diff --git a/metadata.cc b/metadata.cc
index 7dfc787210f0e27c09cc6ca272b768ba1a26f008..20c0a0d9b69bf2eb69a0f78b423fa5c69380abdc 100644
--- a/metadata.cc
+++ b/metadata.cc
@@ -220,7 +220,7 @@ bool ReadFilesystemMetadata(Graph* graph,
// Due to bsdiff slowness, we're going to break each block group down
// into metadata chunks and feed them to bsdiff.
- __u32 num_chunks = 10;
+ __u32 num_chunks = 4;
__u32 blocks_per_chunk = num_metadata_blocks / num_chunks;
__u32 curr_block = bg_start_block;
for (__u32 chunk = 0; chunk < num_chunks; chunk++) {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698