Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pkg/cri: optimize slice initialization
Some of this code was originally added in b7b1200, 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 0c63c42. This patch initializes the slice with a zero-length and expected capacity. Signed-off-by: Sebastiaan van Stijn <github@gone.nl> (cherry picked from commit 4f39b16) Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
- Loading branch information