aboutsummaryrefslogtreecommitdiff
path: root/src/syscall/exec_linux_test.go
diff options
context:
space:
mode:
authorJulien Schmidt <go@julienschmidt.com>2019-09-30 00:07:34 +0000
committerBrad Fitzpatrick <bradfitz@golang.org>2019-09-30 00:45:38 +0000
commit843fec1c7d75cac3f76620e79f1680d8f058c501 (patch)
tree83ecf7eb09a5b63036d3c031d038bef5ec24a95a /src/syscall/exec_linux_test.go
parent931365763a294950200096d071a35f799ffade2c (diff)
downloadgo-843fec1c7d75cac3f76620e79f1680d8f058c501.tar.xz
database/sql: preallocate list slice in Drivers()
The required slice capacity is already known. Thus, preallocate a slice with the correct capacity before appending to it. Change-Id: I45ac2c5f1701caeb3dda20451d371713ae7e7365 GitHub-Last-Rev: 2bf575be65e9a449322540270988eaf87cec4245 GitHub-Pull-Request: golang/go#34602 Reviewed-on: https://go-review.googlesource.com/c/go/+/197917 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org> Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org>
Diffstat (limited to 'src/syscall/exec_linux_test.go')
0 files changed, 0 insertions, 0 deletions