summaryrefslogtreecommitdiff
path: root/aosp/apex_handler_interface.h
diff options
context:
space:
mode:
authorKelvin Zhang <zhangkelvin@google.com>2021-02-19 16:05:08 -0500
committerTreehugger Robot <treehugger-gerrit@google.com>2021-03-11 20:58:50 +0000
commit797756460a058c597aaabde6a8a69470c4fb2ad2 (patch)
tree7c39bf1be45641c06cfb4c66d1700212b5611805 /aosp/apex_handler_interface.h
parent1c21eb8364f4d4468ac1f9aa562e402901f39bad (diff)
Improve load speed for python payload script
When using update_payload module to read a full OTA, it will attempt to load the entire payload into memory first, which is slow. Use mmap instead, as parsing manifest doesn't require the entire payload to be in memory, only the first couple of MB. In case of opening a zipfile, use zfp.open(), which returns a streaming interface. Test: import update_payload, load an OTA Change-Id: I3f7c7515dbf5576ccfda8d844fe22e9be34fdaed
Diffstat (limited to 'aosp/apex_handler_interface.h')
0 files changed, 0 insertions, 0 deletions