From b120de74c87db53efcdbc7fa40462f22747a80bb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20M=C3=B6hrmann?= Date: Sun, 6 Sep 2020 20:37:02 +0200 Subject: [PATCH] remove append based slice copy patterns that are slower since go1.15 than make+copy --- SliceTricks.md | 4 ---- 1 file changed, 4 deletions(-) diff --git a/SliceTricks.md b/SliceTricks.md index 3441faa2..4849d079 100644 --- a/SliceTricks.md +++ b/SliceTricks.md @@ -11,10 +11,6 @@ a = append(a, b...) ```go b = make([]T, len(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