go/src/database/sql
Julien Schmidt 843fec1c7d 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: 2bf575be65
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>
2019-09-30 00:45:38 +00:00
..
driver database/sql: add support for decimal interface 2019-06-13 16:59:01 +00:00
convert.go all: fix typos 2019-09-08 17:28:20 +00:00
convert_test.go all: fix typos 2019-09-08 17:28:20 +00:00
ctxutil.go std: remove unused bits of code all over the place 2019-09-02 12:57:37 +00:00
doc.txt
example_cli_test.go
example_service_test.go
example_test.go
fakedb_test.go database/sql: add NullInt32 2019-04-26 21:54:41 +00:00
sql.go database/sql: preallocate list slice in Drivers() 2019-09-30 00:45:38 +00:00
sql_test.go all: fix typos 2019-09-08 17:28:20 +00:00