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 Move ImageService to new package 2018-02-26 16:49:37 -05:00
image.go Remove unnecessary GetImageIDAndOS use GetImage 2018-02-26 16:49:37 -05:00
image_builder.go Move ImageService to new package 2018-02-26 16:49:37 -05:00
image_commit.go Move ImageService to new package 2018-02-26 16:49:37 -05:00
image_delete.go Remove unnecessary GetImageIDAndOS use GetImage 2018-02-26 16:49:37 -05:00
image_events.go Move ImageService to new package 2018-02-26 16:49:37 -05:00
image_exporter.go Move ImageService to new package 2018-02-26 16:49:37 -05:00
image_history.go Move ImageService to new package 2018-02-26 16:49:37 -05:00
image_import.go Move ImageService to new package 2018-02-26 16:49:37 -05:00
image_inspect.go Move ImageService to new package 2018-02-26 16:49:37 -05:00
image_prune.go Move ImageService to new package 2018-02-26 16:49:37 -05:00
image_pull.go Move ImageService to new package 2018-02-26 16:49:37 -05:00
image_push.go Move ImageService to new package 2018-02-26 16:49:37 -05:00
image_search.go Move ImageService to new package 2018-02-26 16:49:37 -05:00
image_search_test.go Move ImageService to new package 2018-02-26 16:49:37 -05:00
image_tag.go Remove unnecessary GetImageIDAndOS use GetImage 2018-02-26 16:49:37 -05:00
image_unix.go Move ImageService to new package 2018-02-26 16:49:37 -05:00
image_windows.go Move ImageService to new package 2018-02-26 16:49:37 -05:00
images.go Move ImageService to new package 2018-02-26 16:49:37 -05:00
locals.go Move ImageService to new package 2018-02-26 16:49:37 -05:00
service.go Add Len() to image store for info endpoint 2018-03-13 11:58:05 -04:00