AU: Speed up updates by using buffered writes.
Given that SSD writes are really slow, this improves performance significantly.
This reduces update time on AGZ from 375 to 100 seconds.
BUG=6901
TEST=unit tests, gmerged on device and measured speed
Change-Id: Idac7743f6eaa8f26878a2d1f6b9401513e2ca600
Review URL: http://codereview.chromium.org/3471006
diff --git a/file_writer.h b/file_writer.h
index 1a0cc23..a534b96 100644
--- a/file_writer.h
+++ b/file_writer.h
@@ -54,7 +54,7 @@
private:
int fd_;
-
+
DISALLOW_COPY_AND_ASSIGN(DirectFileWriter);
};
@@ -69,7 +69,7 @@
}
private:
FileWriter* writer_;
-
+
DISALLOW_COPY_AND_ASSIGN(ScopedFileWriterCloser);
};