platform_bootable_recovery/update_verifier
Wei Wang 5226f4715d update_verifier: verify blocks in parallel
This CL is to change update_verifier to verify blocks in parallel to
maximize storage bandwidth, it also preallocate the buffer to avoid
vector allocation within reading loop.

Test:
care_map.txt:
system
16,0,517,556,32770,33084,98306,98620,163842,164156,229378,229692,294914,295228,483544,524288,524296
vendor
8,0,119,135,32770,32831,96150,98304,98306

With CL:
init: Service 'update_verifier_nonencrypted' (pid 711) exited with status 0 waiting took 2.978424 seconds

Without CL:
init: Service 'update_verifier_nonencrypted' (pid 695) exited with status 0 waiting took 4.466320 seconds

Bug: 63686531
Test: reboot with manual insert care_map.txt
Change-Id: Idf791865f15f6ff6cad89bf7ff230ee46c6adccc
(cherry picked from commit bd9664b5a0)
2017-08-09 22:59:16 -07:00
..
include/update_verifier Separate libupdate_verifier module and add testcases. 2017-04-27 08:57:23 -07:00
Android.mk update_verifier: Support AVB. 2017-05-24 14:14:11 -04:00
update_verifier.cpp update_verifier: verify blocks in parallel 2017-08-09 22:59:16 -07:00
update_verifier.rc Add 'system' to update_verifier's gid 2017-04-18 11:34:30 -07:00
update_verifier_main.cpp Separate libupdate_verifier module and add testcases. 2017-04-27 08:57:23 -07:00