summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramFragmentFixedFunction.java
diff options
context:
space:
mode:
authorRyan Mitchell <rtmitchell@google.com>2021-01-11 16:01:35 -0800
committerRyan Mitchell <rtmitchell@google.com>2021-01-13 21:14:31 -0800
commit14e8ade9a91ea48cb65b3e14954e13a396e1a94d (patch)
treeadbf03b67a1b60910948fa4fdc10726344eaf1ae /rs/java/android/renderscript/ProgramFragmentFixedFunction.java
parentfb4d09cadd27a3fb1a2e268417f0f511aa92e344 (diff)
Optimize FilterApkAssets by caching config
ResTable_config of every ResTable_type is read from device every time AssetManager::RebuildFilterList is invoked. For large APKs (like framework-res.apk), this causes a large number of page faults when accessing the config from disk. The configs are also used in the slow path of AssetManager::FindEntryInternal, which makes it even slower. Instead cache the config on the TypeSpec of its ApkAsset. Bug: 177247024 Test: libandroidfw_tests Change-Id: I66d507c4eeb2399f7558f3d9dfc53c157129ada0
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions