diff options
author | 2024-10-11 13:52:54 +0900 | |
---|---|---|
committer | 2024-10-14 10:56:27 +0900 | |
commit | cc103033f08d33d102f66ab6d9ff965960039c68 (patch) | |
tree | 6183e64a6c90286e724ce2ed88226bc358e5e047 /api/api_test.go | |
parent | 2b3c5dc2e7b19c18af3c7f05d2fa02ff973ab702 (diff) |
Do not call getStagedApexInfos repeatedly
IApexService.getStagedApexInfos(session) is a costly operation. The
current implementation calls the method more than necessary.
- StagingManager calls it to get the list of apex names for each
observer.
- Each observer calls it to get the info for each staged apex name.
In this change,, StagingManager passes the result to all observers and
each observer just use the result.
Bug: 370712193
Test: StagingManagerTest
Test: StagedInstallInternalTest
Change-Id: Ica92dbad7e72ee3c853a0fc34069c89f47f072ee
Diffstat (limited to 'api/api_test.go')
0 files changed, 0 insertions, 0 deletions