summaryrefslogtreecommitdiff
path: root/libs/hwui/FrameInfoVisualizer.cpp
diff options
context:
space:
mode:
author Songchun Fan <schfan@google.com> 2024-01-09 16:03:16 -0800
committer Songchun Fan <schfan@google.com> 2024-01-17 14:18:09 -0800
commitd05c0ff623ce7362ad718e51b378805450928fe9 (patch)
tree8690305ce900e657b40de60df835abff1e025842 /libs/hwui/FrameInfoVisualizer.cpp
parentf8a667575a3c73888c446485187b675e04bdedb3 (diff)
[SettingsProvider] use per-prefix caches for Config.getStrings queries
Previously all values are cached in the same map, which is inefficient for Config.getStrings queries which request for multiple settings under the same prefix and we have look-up the whole cache multiple times. It is better to have per-prefix caches which only requires one look up per prefix, and subsequent searches inside the prefix cache would be faster as well because each per-prefix cache is much smaller. BUG: 316866951 Test: atest CtsDeviceConfigTestCases CtsPermissionUiTestCases CtsDisplayTestCases CtsAutoFillServiceTestCases SettingsProviderTest CtsProviderTestCases Change-Id: Ifb4ff91cc034405227d9614bf1029d2a70901bce
Diffstat (limited to 'libs/hwui/FrameInfoVisualizer.cpp')
0 files changed, 0 insertions, 0 deletions