Commit be19a24b authored by Sen Jiang's avatar Sen Jiang Committed by Tianjie Xu
Browse files

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
parent 8cbf696f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment