moby--moby/image
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
spec
tarexport
v1
fs.go
fs_test.go
image.go
image_test.go
rootfs.go
store.go Add `Len()` to image store for info endpoint 2018-03-13 11:58:05 -04:00
store_test.go