moby--moby/daemon/images
Brian Goff f6a7763b6f Add `Len()` to image store for info endpoint
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>
2018-03-13 11:58:05 -04:00
..
cache.go
image.go Remove unnecessary GetImageIDAndOS use GetImage 2018-02-26 16:49:37 -05:00
image_builder.go
image_commit.go
image_delete.go Remove unnecessary GetImageIDAndOS use GetImage 2018-02-26 16:49:37 -05:00
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 Remove unnecessary GetImageIDAndOS use GetImage 2018-02-26 16:49:37 -05:00
image_unix.go
image_windows.go
images.go
locals.go
service.go Add `Len()` to image store for info endpoint 2018-03-13 11:58:05 -04:00