diff options
| author | 2025-02-05 09:50:43 +0000 | |
|---|---|---|
| committer | 2025-02-05 11:43:49 -0800 | |
| commit | 02d50bee7d8ffb572729574fe7c8d4bd8f1037f7 (patch) | |
| tree | 9a574ad953ffaf45fc5cbc4c8a19caabfac4a61c /libs/androidfw/AssetsProvider.cpp | |
| parent | ecb8b404e20bc6aaae9eb78909b21842667a1cda (diff) | |
Perfetto api Performance improvements
1. Avoid lambda allocation during Perfetto tracing
Some methods accepted a supplier using syntactic sugar of the form:
Class::new. This sugar was allocating a lambda in the background.
Now, we eagerly create these suppliers and re-use them.
2. Remove var args from apis to avoid array allocations
Test: atest PerfettoTraceTest
Bug: 303199244
Flag: android.os.perfetto_sdk_tracing_v2
Change-Id: If39cbaf4b74f50a0e6337cbff7fd6062a9bab672
Diffstat (limited to 'libs/androidfw/AssetsProvider.cpp')
0 files changed, 0 insertions, 0 deletions