]> Cypherpunks.ru repositories - gostls13.git/commit
net/url: use quick path in URL.Encode() on empty map
authorMikhail Mazurskiy <mmazurskiy@gitlab.com>
Tue, 31 Oct 2023 00:17:18 +0000 (00:17 +0000)
committerGopher Robot <gobot@golang.org>
Tue, 7 Nov 2023 22:01:35 +0000 (22:01 +0000)
commitac85f2bedd405d64b54c3a248c9079b6cde57359
tree0250cbbf3e220154f6809c062513185905174d4f
parent995ec5c85b2690ff65f7f1143f1283f19cd03100
net/url: use quick path in URL.Encode() on empty map

Make url.Values.Encode() slightly more efficient when url.Values
is an empty but non-nil map.

Change-Id: I7f205cc7e67526a1fa0035eab4773cec5e0f2c99
GitHub-Last-Rev: 0530b439db8cea755464c6dc2d268a0bd567889e
GitHub-Pull-Request: golang/go#63836
Reviewed-on: https://go-review.googlesource.com/c/go/+/538637
Reviewed-by: Damien Neil <dneil@google.com>
Reviewed-by: Bryan Mills <bcmills@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Auto-Submit: Damien Neil <dneil@google.com>
src/net/url/url.go
src/net/url/url_test.go