You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
path, allImages is manually filtered to only those (the first one) that actually match that digest in storage.Image.Digests.
It seems to me that that code path could call storage.Store.ImagesByDigest, and the full allImages collection could only happen later, to implement the inRepoTags search.
That would save a bit of memory and CPU time when copying image objects from the c/storage primary records into a return value, and the like — OTOH it’s all on a “fallback heuristics” path, so it might well not be worth worrying about.
The text was updated successfully, but these errors were encountered:
Runtime.lookupImageInDigestsAndRepoTags
calls, incommon/libimage/runtime.go
Line 426 in 18c4568
storage.Store.Images
, getting a copy of all images.On the
common/libimage/runtime.go
Line 441 in 18c4568
allImages
is manually filtered to only those (the first one) that actually match that digest instorage.Image.Digests
.It seems to me that that code path could call
storage.Store.ImagesByDigest
, and the fullallImages
collection could only happen later, to implement theinRepoTags
search.That would save a bit of memory and CPU time when copying image objects from the c/storage primary records into a return value, and the like — OTOH it’s all on a “fallback heuristics” path, so it might well not be worth worrying about.
The text was updated successfully, but these errors were encountered: