commit | be19a24bc29f954252ae7b61d3524928a702edcd | [log] [tgz] |
---|---|---|
author | Sen Jiang <senj@google.com> | Fri Nov 17 11:48:17 2017 -0800 |
committer | Tianjie Xu <xunchang@google.com> | Tue Nov 21 14:48:02 2017 -0800 |
tree | ad5c028ad5f78fcd7435dca6019f80cf70bcb134 | |
parent | 8cbf696f9f5eccbfeaa28db521ecc976389d3762 [diff] |
Reserve max buffer size in delta performer. From the analysis in b/34220646#comment68, repeatedly insertion to the vector caused memory reallocation and potentially increase the peak memory usage a lot. This issue can be easily fixed by reserving the memory first since we know the patch size in advance. Bug: 34220646 Test: run an incremental update on sailfish and check the memory usage. Change-Id: I89726cc5c8d51c2e43ac8616c711eeabc3f88dbc