Files
kubernetes/test
Kir Kolyshkin 78e98da1db test/e2e/framework/log: optimize PrunedStack()
Use bytes instead of strings, and slice in-place filter
(see https://github.com/golang/go/wiki/SliceTricks#filter-in-place)
to avoid copying strings around.

In my benchmark it shows almost 2x improvement:

BenchmarkString-8    	 1477207	     10198 ns/op
BenchmarkBuffer-8    	 1561291	      7622 ns/op
BenchmarkInPlace-8   	 2295714	      5202 ns/op

String is the original implementation, Buffer is an intermediary
one that uses strings.Builder, and InPlace is the one from this commit.

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
2020-02-20 12:58:26 -08:00
..
2020-02-14 14:03:19 -08:00
2020-02-08 12:30:21 -05:00
2020-02-14 14:03:19 -08:00
2020-02-13 14:58:26 -08:00
2020-01-03 17:28:39 +01:00
2018-10-09 12:32:27 -07:00
2020-02-14 14:03:19 -08:00