Files
coredns/plugin
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-05-28 17:50:55 -07:00
2025-05-28 17:50:55 -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
2024-11-13 09:40:25 -08:00
2025-05-28 17:50:55 -07:00
2022-07-10 11:06:33 -07:00
2023-04-25 11:24:49 -04:00
2024-03-07 14:24:38 -05: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
2020-09-24 18:14:41 +02:00