commit | 7c10891737672a4a0a1da0bf830d2ad1943e76fd | [log] [tgz] |
---|---|---|
author | Geremy Condra <gcondra@google.com> | Tue Apr 15 11:18:41 2014 -0700 |
committer | Geremy Condra <gcondra@google.com> | Tue Apr 15 16:42:47 2014 -0700 |
tree | ee2ea6cb0df57990df2d64a74ccb3923a6a0be5f | |
parent | 014cf80b5040ed443142b2a8b2f348330f720db4 [diff] |
verity: optimize for memory usage Reading the entire image into memory and then blockifying it will peak at using 2x the size of the image, and hold the size of the image in memory for the entire computation. Instead, read up to 16MB at a time and compute its block hashes before throwing it away and continuing. Change-Id: Ibbf1317616765a0dd8de4195b1046a75394c1815