mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
f6a7763b6f
In info, we only need the number of images, but `CountImages` was getting the whole map of images and then grabbing the length from that. This causes a lot of unnecessary CPU usage and memory allocations, which increases with O(n) on the number of images. Signed-off-by: Brian Goff <cpuguy83@gmail.com> |
||
---|---|---|
.. | ||
cache.go | ||
image.go | ||
image_builder.go | ||
image_commit.go | ||
image_delete.go | ||
image_events.go | ||
image_exporter.go | ||
image_history.go | ||
image_import.go | ||
image_inspect.go | ||
image_prune.go | ||
image_pull.go | ||
image_push.go | ||
image_search.go | ||
image_search_test.go | ||
image_tag.go | ||
image_unix.go | ||
image_windows.go | ||
images.go | ||
locals.go | ||
service.go |