]> Cypherpunks repositories - gostls13.git/commit
syscall: rewrite Windows makeCmdLine to use []byte
authorIan Lance Taylor <iant@golang.org>
Tue, 6 Oct 2020 23:31:00 +0000 (16:31 -0700)
committerIan Lance Taylor <iant@golang.org>
Wed, 7 Oct 2020 16:33:31 +0000 (16:33 +0000)
commit492258549717d4e73a22170c507fb26a731c4aba
treec354a662d4eb633512a24b0fc4c2454bba070638
parentccf89bef43f3580526019e0804e91352e62047d5
syscall: rewrite Windows makeCmdLine to use []byte

It's faster to append to a []byte and only convert to string at the
end then it is to build up a string by concatenating characters.

Fixes #41825

Change-Id: I45ddf77dcc62726c919f0533c95d483cee8ba366
Reviewed-on: https://go-review.googlesource.com/c/go/+/259978
Trust: Ian Lance Taylor <iant@golang.org>
Trust: Alex Brainman <alex.brainman@gmail.com>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Alex Brainman <alex.brainman@gmail.com>
src/syscall/exec_windows.go