automation-tests/common/libimage
Valentin Rothberg 7cd4a8a161 libimage: speed up image filters
With commit e983ccadc6 the dangling checks have been changed to be
compatible with Docker.  Since then, the dangling also need to compute
children.

Speed up the dangling and intermediate checks by computing the layer
tree *once* instead of for each filter invocation.

**Before:**
real    0m10.837s
user    0m11.308s
sys     0m4.231s

**After:**
real    0m0.476s
user    0m0.478s
sys     0m0.151s

Context: github.com/containers/podman/issues/11997
Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
2021-10-19 15:30:06 +02:00
..
manifests Standardize on capatalize logrus messages, remove stutters 2021-09-24 14:35:52 -04:00
testdata libimage: add more image tests 2021-05-21 09:55:05 +02:00
copier.go libimage: use faster json library 2021-09-29 14:18:01 +02:00
corrupted_test.go libimage: Inspect: add InspectOptions 2021-10-08 13:45:54 +02:00
disk_usage.go libimage: disk usage: catch corrupted images 2021-08-31 11:09:21 +02:00
download.go Set BigFilesTemporaryDir to GetEnv(TMPDIR) if set or /var/tmp 2021-06-16 10:53:59 -04:00
events.go Merge pull request #524 from vrothberg/libimage-events 2021-05-06 14:34:49 -04:00
filters.go libimage: speed up image filters 2021-10-19 15:30:06 +02:00
history.go libimage: follow-up changes 2021-05-03 15:20:40 +02:00
image.go libimage: speed up image filters 2021-10-19 15:30:06 +02:00
image_config.go libimage: use faster json library 2021-09-29 14:18:01 +02:00
image_test.go libimage: Inspect: add InspectOptions 2021-10-08 13:45:54 +02:00
image_tree.go libimage: image tree: fix nil deref 2021-07-09 15:11:04 +02:00
import.go Add and use libimage.Runtime.imageIDsForManifest() 2021-07-23 15:09:28 -04:00
import_test.go libimage: import: fix tags 2021-07-06 14:42:50 +02:00
inspect.go libimage: Inspect: add InspectOptions 2021-10-08 13:45:54 +02:00
layer_tree.go libruntime: layer tree: handle empty images 2021-07-20 11:00:21 +02:00
load.go libimage: load: try docker-archive first 2021-09-30 14:15:51 +02:00
load_test.go libimage: force remove: only untag on multi tag image 2021-06-17 15:46:14 +02:00
manifest_list.go libimage: LookupImage: remove IgnorePlatform option 2021-07-02 14:14:56 +02:00
manifest_list_test.go remove-image: Add optional LookupManifest to RemoveImagesOptions. 2021-09-02 14:21:51 +05:30
normalize.go support tag@digest notation 2021-05-26 16:39:03 +02:00
normalize_test.go support tag@digest notation 2021-05-26 16:39:03 +02:00
oci.go libimage: follow-up changes 2021-05-03 15:20:40 +02:00
pull.go libimage: Pull: fix logs 2021-10-08 10:34:48 +02:00
pull_test.go libimage: pull: normalize docker-daemon 2021-07-21 13:48:58 +02:00
push.go libimage: LookupImage: remove IgnorePlatform option 2021-07-02 14:14:56 +02:00
push_test.go libimage: Inspect: add InspectOptions 2021-10-08 13:45:54 +02:00
remove_test.go libimage: force remove: only untag on multi tag image 2021-06-17 15:46:14 +02:00
runtime.go libimage: use faster json library 2021-09-29 14:18:01 +02:00
runtime_test.go libimage: `(*Runtime).SystemContext()` 2021-06-24 10:41:25 +02:00
save.go libimage: LookupImage: remove IgnorePlatform option 2021-07-02 14:14:56 +02:00
save_test.go libimage: add save tests 2021-05-14 12:21:52 +02:00
search.go Merge pull request #802 from jelly/search_registry_truncated 2021-10-14 19:27:59 +02:00