mirror of
https://github.com/docker/cli.git
synced 2026-09-01 10:05:51 -05:00
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> Upstream-commit: f6a7763b6f3256bed9a7352021745189d0ca8dc9 Component: engine