mirror of https://github.com/golang/go.git
Change convertAssignRows to use time.AppendFormat and a pre-allocated buffer when assigning a time.Time to a byte slice. Previously, the result of time.Format was converted to a byte slice which required two allocations. Change-Id: I19db5e4d295e882070f947eca318a4e33520cda1 Reviewed-on: https://go-review.googlesource.com/c/go/+/622597 Reviewed-by: Carlos Amedee <carlos@golang.org> Auto-Submit: Ian Lance Taylor <iant@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Ian Lance Taylor <iant@google.com> |
||
|---|---|---|
| .. | ||
| driver | ||
| convert.go | ||
| convert_test.go | ||
| ctxutil.go | ||
| doc.txt | ||
| example_cli_test.go | ||
| example_service_test.go | ||
| example_test.go | ||
| fakedb_test.go | ||
| sql.go | ||
| sql_test.go | ||