Files
kubernetes/test/e2e
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-10 22:47:53 +01:00
2020-02-08 12:30:21 -05:00
2020-02-08 12:30:21 -05:00
2020-02-08 12:30:21 -05:00
2020-02-08 12:30:21 -05:00
2020-02-08 12:30:21 -05:00
2020-02-08 12:30:21 -05:00
2020-02-07 18:16:47 -08:00
2019-11-14 23:50:48 +00:00