Ville Vesilehto
60227bd8d2
perf(kubernetes): optimize AutoPath slice allocation (#7323)
Pre-allocate slice capacity in AutoPath to eliminate unnecessary
memory reallocations. This avoids slice growth when appending
search domains and sentinel value.
Benchmark shows significant performance improvement:
- Before: 538.6 ns/op, 560 B/op, 13 allocs/op
- After: 436.8 ns/op, 336 B/op, 11 allocs/op
- Result: 19% faster, 40% less memory, 15% fewer allocations
The optimization benefits Kubernetes clusters using autopath for
server-side search path completion.
Adds benchmark test to measure AutoPath performance.
Signed-off-by: Ville Vesilehto <ville@vesilehto.fi>
2025-05-28 17:58:01 -07:00
..
2025-04-04 14:27:39 -04:00
2020-10-28 10:56:35 -07:00
2025-04-04 14:27:39 -04:00
2024-07-01 11:18:35 -04:00
2025-05-28 17:50:55 -07:00
2025-05-23 09:23:14 -07:00
2023-07-10 07:49:52 -07:00
2025-05-28 17:50:55 -07:00
2020-10-28 10:56:35 -07:00
2023-08-14 15:14:09 +02:00
2025-05-28 17:50:55 -07:00
2025-05-28 17:50:55 -07:00
2020-09-24 18:14:41 +02:00
2025-04-04 14:27:39 -04:00
2025-04-04 14:27:39 -04:00
2025-05-28 17:50:55 -07:00
2025-05-28 17:50:55 -07:00
2025-05-28 17:50:55 -07:00
2025-05-28 17:50:55 -07:00
2025-05-28 17:50:55 -07:00
2025-05-28 17:50:55 -07:00
2025-04-04 14:27:39 -04:00
2025-05-28 17:50:55 -07:00
2025-04-04 14:27:39 -04:00
2024-03-11 16:09:09 -04:00
2024-08-06 07:13:22 -04:00
2020-10-28 10:56:35 -07:00
2025-05-18 22:58:16 -07:00
2025-05-28 17:58:01 -07:00
2025-05-28 17:50:55 -07:00
2020-11-05 15:02:07 +01:00
2025-05-28 17:50:55 -07:00
2022-03-16 12:24:58 -04:00
2023-06-09 18:08:23 +02:00
2025-05-22 06:38:22 -07:00
2021-03-16 10:55:21 +01:00
2024-11-13 09:40:25 -08:00
2023-08-14 15:14:09 +02:00
2025-05-28 17:50:55 -07:00
2022-07-10 11:06:33 -07:00
2025-05-18 17:49:21 -07:00
2025-04-08 09:46:30 -04:00
2023-04-25 11:24:49 -04:00
2025-05-28 17:50:55 -07:00
2025-05-27 10:02:55 -07:00
2025-05-28 17:50:55 -07:00
2025-04-25 13:40:15 -04:00
2025-04-04 14:27:39 -04:00
2023-11-10 14:16:47 -08:00
2023-11-10 10:00:47 -05:00
2025-03-24 10:37:28 -04:00
2024-03-07 14:24:38 -05:00
2025-04-04 14:27:39 -04:00
2025-05-28 17:50:55 -07:00
2025-04-04 14:27:39 -04:00
2024-08-11 08:00:49 -04:00
2023-08-14 15:14:09 +02:00
2025-05-22 06:37:55 -07:00
2025-05-22 06:37:55 -07:00
2020-09-24 20:30:39 +02:00
2019-08-24 18:14:25 +00:00
2018-07-19 16:23:06 +01:00
2022-07-10 11:06:33 -07:00
2022-07-10 11:06:33 -07:00
2024-03-11 16:09:09 -04:00
2020-09-24 18:14:41 +02:00