remove append based slice copy patterns that are slower since go1.15 than make+copy

Martin Möhrmann 2020-09-06 20:37:02 +02:00
parent 7c21e78798
commit b120de74c8

@ -11,10 +11,6 @@ a = append(a, b...)
```go ```go
b = make([]T, len(a)) b = make([]T, len(a))
copy(b, a) copy(b, a)
// or
b = append([]T(nil), a...)
// or
b = append(a[:0:0], a...) // See https://github.com/go101/go101/wiki
``` ```
#### Cut #### Cut