1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00
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
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 Add Len() to image store for info endpoint 2018-03-13 11:58:05 -04:00