containerd/pkg/cri/store/container
Sebastiaan van Stijn 4f39b164f3
pkg/cri: optimize slice initialization
Some of this code was originally added in b7b1200dd3,
which likely meant to initialize the slice with a length to reduce allocations,
however, instead of initializing with a zero-length and a capacity, it
initialized the slice with a fixed length, which was corrected in commit
0c63c42f81.

This patch initializes the slice with a zero-length and expected capacity.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2023-01-24 20:46:20 +01:00
..
container_test.go Implement CRI container and pods stats 2021-11-03 17:52:05 -07:00
container.go clean-up "nolint" comments, remove unused ones 2022-10-12 14:40:59 +02:00
fake_status.go Move cri server packages under pkg/cri 2020-10-07 13:09:37 -07:00
metadata_test.go move up to CRI v1 and support v1alpha in parallel 2021-06-28 09:34:12 -05:00
metadata.go remove unneeded nolint-comments (nolintlint), disable deprecated linters 2022-10-12 14:41:01 +02:00
status_test.go Fix linter warnings 2022-07-15 13:29:04 -07:00
status.go pkg/cri: optimize slice initialization 2023-01-24 20:46:20 +01:00