This repository has been archived by the owner on Nov 1, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Only calculate container fields that are requested
The ListImagesWithOptions API method lets you supply a list of the fields you want for each container, so that you can cut down on the size of the response when you don't care about some fields. But all the fields are calculated, whatever you ask for, which involves a lot of sorting and filtering. This commit makes the procedure calculating the fields _only_ calculate the fields that were actually requested. Some of the calculations depend on the same intermediate results; so, the approach is to lazily calculate and cache intermediate results.
- Loading branch information
Showing
2 changed files
with
136 additions
and
118 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters