commit | 5fecb71b79571a2168508f1a10123918b5ccc306 | [log] [tgz] |
---|---|---|
author | Jared Duke <jdduke@google.com> | Sat Feb 10 00:25:36 2024 +0000 |
committer | Jared Duke <jdduke@google.com> | Wed Feb 14 19:27:30 2024 +0000 |
tree | 42f7ae805c1cf4e9092becb390e638a6f65503ff | |
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