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
..
2023-01-02 21:39:20 +08:00
2022-06-01 17:20:18 -05:00
2022-12-08 09:36:20 -08:00
2022-12-08 09:36:20 -08:00
2022-11-20 09:43:54 +08:00
2022-02-22 02:27:05 +08:00
2022-09-22 07:24:48 +00:00
2022-12-30 15:07:54 -03:00
2022-12-30 15:07:54 -03:00
2022-12-08 09:36:20 -08:00
2022-12-21 15:08:28 -03:00
2022-12-26 04:03:45 -05:00
2022-11-19 01:12:02 +01:00
2023-01-11 13:12:25 -08:00
2023-01-03 12:47:16 -08:00
2022-12-08 19:31:36 +00:00
2022-02-22 02:27:05 +08:00
2022-06-06 09:57:13 -07:00
2022-06-06 09:57:13 -07:00
2022-05-29 18:32:09 -07:00
2022-02-22 02:27:05 +08:00
2022-02-22 02:27:05 +08:00
2022-05-29 18:32:09 -07:00
2022-12-08 19:30:39 +00:00
2022-05-29 18:32:09 -07:00
2022-12-08 19:30:39 +00:00
2022-11-14 21:07:48 +00:00
2022-07-19 16:49:08 -07:00
2022-12-08 09:36:20 -08:00
2022-07-19 16:49:08 -07:00
2022-01-07 10:27:03 +08:00
2022-10-12 14:41:01 +02:00
2022-10-12 14:41:01 +02:00
2022-05-29 18:32:09 -07:00
2022-08-24 19:08:06 +00:00
2022-05-29 18:32:09 -07:00
2022-12-08 19:30:39 +00:00
2023-01-10 15:41:04 +01:00
2022-02-22 02:27:05 +08:00
2022-12-08 09:36:20 -08:00
2022-02-22 02:27:05 +08:00
2022-12-08 09:36:20 -08:00
2022-04-22 15:41:05 +00:00
2022-12-08 19:30:39 +00:00
2022-12-08 09:36:20 -08:00
2022-05-29 18:32:09 -07:00
2022-12-30 16:49:28 -03:00
2022-12-08 09:36:20 -08:00
2021-06-28 09:34:12 -05:00
2022-05-29 18:32:09 -07:00
2021-08-05 22:27:46 -07:00
2023-01-24 20:46:20 +01:00
2022-02-22 02:27:05 +08:00
2022-02-22 02:27:05 +08:00
2022-06-03 10:04:53 +02:00
2022-12-07 15:11:00 +08:00
2022-11-11 01:28:27 +00:00
2022-02-22 02:27:05 +08:00
2022-11-11 01:28:27 +00:00
2022-02-22 02:27:05 +08:00
2022-02-22 02:27:05 +08:00
2023-01-03 12:47:16 -08:00
2022-11-18 21:13:34 +00:00
2022-11-18 21:13:34 +00:00
2022-12-23 09:23:56 +00:00
2022-12-29 14:25:14 +08:00
2022-12-29 14:25:14 +08:00
2022-12-29 14:25:14 +08:00
2022-12-08 09:36:20 -08:00
2022-12-08 09:36:20 -08:00
2022-12-14 01:47:22 -08:00
2022-05-29 18:32:09 -07:00
2022-02-22 02:27:05 +08:00
2022-12-14 01:47:22 -08:00
2022-12-08 09:36:20 -08:00
2022-02-22 02:27:05 +08:00
2022-02-22 02:27:05 +08:00
2022-12-08 19:30:39 +00:00
2022-12-21 17:56:56 -03:00
2023-01-11 13:03:59 -08:00
2022-12-08 09:36:20 -08:00
2022-12-21 15:08:28 -03:00
2022-06-09 18:54:10 -07:00
2022-11-19 01:12:02 +01:00
2022-12-21 15:08:28 -03:00
2022-12-29 14:08:24 -06:00
2022-11-14 21:07:48 +00:00
2022-10-12 14:41:01 +02:00
2022-12-08 09:36:20 -08:00
2022-02-22 02:27:05 +08:00
2022-10-12 14:41:01 +02:00
2022-05-29 18:32:09 -07:00
2022-12-14 01:47:22 -08:00
2022-05-29 18:32:09 -07:00
2022-12-23 09:23:56 +00:00
2023-01-02 18:55:31 -08:00
2023-01-02 18:55:31 -08:00
2022-06-27 22:54:25 +00:00
2023-01-02 18:55:31 -08:00
2022-12-22 14:09:29 -08:00
2022-01-07 10:27:03 +08:00
2022-02-22 02:27:05 +08:00
2020-10-07 13:09:37 -07:00
2022-01-07 10:27:03 +08:00
2022-06-27 22:54:25 +00:00
2022-03-15 14:03:50 +08:00
2022-12-23 09:23:56 +00:00
2022-11-18 21:09:43 +00:00