commit | 9602bec9fb1f94958153d4e6a5a8c3d90938157b | [log] [tgz] |
---|---|---|
author | Kweku Adams <kwekua@google.com> | Mon Aug 14 17:14:22 2023 +0000 |
committer | Kweku Adams <kwekua@google.com> | Wed Aug 23 21:22:14 2023 +0000 |
tree | 52a3f78f6ccf6d67462018b3622de99b38912da1 | |
parent | 0372edf86506b9e470aa12df6245752ace6d6c10 [diff] |
Cache frequently used LocalServices. Any LocalServices object that is reused in a class should be cached locally so that we avoid repeated lookups within the LocalServices map, especially during tight loops. Bug: 295877092 Test: atest CtsJobSchedulerTestCases Test: atest FrameworksMockingServicesTests:JobStatusTest Test: atest FrameworksMockingServicesTests:QuotaControllerTest Change-Id: Ie8d90a0f8aebbb23138613095859e1f9ce1b207f