mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-07-30 04:24:52 +00:00
ReplaceAllStrings always allocates, while scanning a relatively short regex twice is slightly more CPU immediately but less later. ``` BenchmarkGet-12 100000 108824 ns/op 17818 B/op 152 allocs/op BenchmarkGet-12 100000 108013 ns/op 17732 B/op 149 allocs/op ```