summaryrefslogtreecommitdiff
path: root/libutils/Unicode_test.cpp
diff options
context:
space:
mode:
authorAkilesh Kailash <akailash@google.com>2021-03-18 08:18:22 +0000
committerAkilesh Kailash <akailash@google.com>2021-03-19 06:32:52 +0000
commit3e807e965129ea1e685d8b7ccca1e7aa7e0ca491 (patch)
tree4f348d4c0bfcd8646a733577e13061e17e4e28ea /libutils/Unicode_test.cpp
parent49699fe895970fe8583c349532de4f79c7ae7e2e (diff)
libsnapshot:snapuserd: Cut down memory usage
Use sorted std:vector instead of std:map to store the mapping between chunk-id to COW operation. Addtionally, use shrink_to_fit to cut down vector capacity when COW operations are stored. On a full OTA of 1.8G, Anon RSS usage is reduced from 120MB to 68MB. No variance observed when merge was in progress. Bug: 182960300 Test: Full and Incremental OTA - verified memory usage Signed-off-by: Akilesh Kailash <akailash@google.com> Change-Id: I50cacbe0d03837a830dedcf9bd0ac9663fc68fa7
Diffstat (limited to 'libutils/Unicode_test.cpp')
0 files changed, 0 insertions, 0 deletions