diff options
author | Sen Jiang <senj@google.com> | 2017-11-17 11:48:17 -0800 |
---|---|---|
committer | Tianjie Xu <xunchang@google.com> | 2017-11-21 14:48:02 -0800 |
commit | be19a24bc29f954252ae7b61d3524928a702edcd (patch) | |
tree | ad5c028ad5f78fcd7435dca6019f80cf70bcb134 /update_manager/policy_test_utils.h | |
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
Diffstat (limited to 'update_manager/policy_test_utils.h')
0 files changed, 0 insertions, 0 deletions