]> Cypherpunks repositories - gostls13.git/commit
net/url: reduce allocs on resolvePath func
authorsergey <sngasuan@gmail.com>
Thu, 2 May 2019 15:07:34 +0000 (18:07 +0300)
committerBrad Fitzpatrick <bradfitz@golang.org>
Fri, 8 Nov 2019 18:29:48 +0000 (18:29 +0000)
commit3e5c04313c28e463fa866c2ef669ed66628faf9b
treeaf24d986c88a3c82938ba66c1fb1d0e854d0ebc2
parent4692343cf401a5bbcc290d48fead12157754b8e5
net/url: reduce allocs on resolvePath func

pregrow result array to avoid small allocation.

Change-Id: Ife5f815efa4c163ecdbb3a4c16bfb60a484dfa11
Reviewed-on: https://go-review.googlesource.com/c/go/+/174706
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/net/url/url.go