summaryrefslogtreecommitdiff
path: root/update_manager/policy_test_utils.h
diff options
context:
space:
mode:
authorSen Jiang <senj@google.com>2017-11-17 11:48:17 -0800
committerTianjie Xu <xunchang@google.com>2017-11-21 14:48:02 -0800
commitbe19a24bc29f954252ae7b61d3524928a702edcd (patch)
treead5c028ad5f78fcd7435dca6019f80cf70bcb134 /update_manager/policy_test_utils.h
parent8cbf696f9f5eccbfeaa28db521ecc976389d3762 (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