diff options
| author | 2024-02-10 00:25:36 +0000 | |
|---|---|---|
| committer | 2024-02-14 19:27:30 +0000 | |
| commit | 5fecb71b79571a2168508f1a10123918b5ccc306 (patch) | |
| tree | 42f7ae805c1cf4e9092becb390e638a6f65503ff /libs/androidfw/BackupData.cpp | |
| parent | bd5d529388bcc9959a7d17704fde0c60c1b9ead4 (diff) | |
Cache MemoryIntArray size
The underlying ashmem buffer size should never change, so cache it upon
MemoryIntArray creation. We still validate that the ashmem region hasn't
been closed before any associated operations on the member size.
This reduces MemoryIntArray-related overhead for some common operations
by ~50%.
Bug: 323623465
Test: m + presubmit
Change-Id: I41060c3da3dad830b35acf042c5bc5b0af3b6091
Diffstat (limited to 'libs/androidfw/BackupData.cpp')
0 files changed, 0 insertions, 0 deletions