d5f3da8dc5
Direct writes for partition flashing significantly increase performance. Use O_DIRECT flag when opening partition for flashing. Additionally use a 4096b aligned buffer which is required for O_DIRECT. Switch from using 8MB write buffer to 1MB write buffer, as the extra allocation has no performance impact. Test: flash locally and reach home screen Bug: 205151372 Signed-off-by: Konstantin Vyshetsky <vkon@google.com> Change-Id: I060f438cf698d0fda1e59e35338bb5dc1cd05b51 |
||
---|---|---|
.. | ||
commands.cpp | ||
commands.h | ||
fastboot_device.cpp | ||
fastboot_device.h | ||
flashing.cpp | ||
flashing.h | ||
main.cpp | ||
tcp_client.cpp | ||
tcp_client.h | ||
usb.cpp | ||
usb.h | ||
usb_client.cpp | ||
usb_client.h | ||
utility.cpp | ||
utility.h | ||
variables.cpp | ||
variables.h |