-
Notifications
You must be signed in to change notification settings - Fork 694
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Cache loaded images for performance improvements.
Locally on ubuntu 18.04, the join_layers step takes >30 seconds for the container_bundle_with_install_pkgs target without this change, and ~5 seconds with this change. With the previous implementation, join_layers was passing the same set of images to reader.parts for each call to ReadImage. The reader, created fresh for each call to ReadImage, would then load these same images again. This results in a fixed cost for every image you add to the bundle. For large bundles, this can be very costly (on the order of minutes).
- Loading branch information
aptenodytes-forsteri
committed
Oct 6, 2021
1 parent
0086a29
commit e29901e
Showing
3 changed files
with
77 additions
and
35 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
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