aboutsummaryrefslogtreecommitdiff
path: root/src/os/exec/exec_test.go
diff options
context:
space:
mode:
authorBrad Fitzpatrick <bradfitz@golang.org>2016-07-18 17:27:21 +0000
committerBrad Fitzpatrick <bradfitz@golang.org>2016-08-16 00:33:15 +0000
commit3ddc9ad9161c6d5ae07ce2304aa838d4b853cc78 (patch)
tree534f500ee713495ec133d7580886097bcadb6640 /src/os/exec/exec_test.go
parentc88e868030f5f0bc68c11cb65af625e77acc43ba (diff)
downloadgo-3ddc9ad9161c6d5ae07ce2304aa838d4b853cc78.tar.xz
strings: add special cases for Join of 2 and 3 strings
We already had special cases for 0 and 1. Add 2 and 3 for now too. To be removed if the compiler is improved later (#6714). This halves the number of allocations and total bytes allocated via common filepath.Join calls, improving filepath.Walk performance. Noticed as part of investigating filepath.Walk in #16399. Change-Id: If7b1bb85606d4720f3ebdf8de7b1e12ad165079d Reviewed-on: https://go-review.googlesource.com/25005 Reviewed-by: Ian Lance Taylor <iant@golang.org> Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
Diffstat (limited to 'src/os/exec/exec_test.go')
0 files changed, 0 insertions, 0 deletions