diff options
author | Adam Lesinski <adamlesinski@google.com> | 2018-01-08 17:38:30 -0800 |
---|---|---|
committer | Adam Lesinski <adamlesinski@google.com> | 2018-02-05 18:38:57 -0800 |
commit | 88c9959e5b417320bbc2484fab42ab4b12379533 (patch) | |
tree | 85dd7f4b48e7c233067ecd99b9b78cc9edb0459a /tools/aapt2/java/JavaClassGenerator_test.cpp | |
parent | 59f63bd801f10336c9f0499b7a0bc0bccb0fad2e (diff) |
libandroidfw: Improve performance of AssetManager2
AssetManager2 relied on creating a list of configurations
present in the resource table so as to avoid copying and
converting ResTable_config's from the APK on every
resource retrieval.
ResTable, however, had a better optimization that pruned
the configurations that didn't match the currently set
configuration. This vastly reduced the number of ResTable_configs
to test.
In this CL, AssetManager2 follows suite with this optimization
and only maintains the filtered ResTable_configs, falling back
to the slow path when the configuration is overridden.
Test: mma frameworks/base/libs/androidfw
Test: adb sync system data
Test: adb shell /data/benchmarktest64/libandroidfw_benchmarks/libandroidfw_benchmarks
Change-Id: Ib57b75fbb32e1d310eec146e5a12dfc6de4385f9
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions