diff options
| author | Rui Ueyama <ruiu@google.com> | 2014-06-16 18:00:28 -0700 |
|---|---|---|
| committer | Rui Ueyama <ruiu@google.com> | 2014-06-16 18:00:28 -0700 |
| commit | 38eea5b2ad6a6bf108cf4445506559118e34d782 (patch) | |
| tree | a68e16f2d6a873c08d74eb48caab7ee265dc84f2 /src/pkg/runtime/string.c | |
| parent | 60c0b3b5cf89c8054328e27d7ee58da79a12999e (diff) | |
| download | go-38eea5b2ad6a6bf108cf4445506559118e34d782.tar.xz | |
net: avoid array copy when shuffling SRV records
We don't need to shift array elements to shuffle them.
We just have to swap a selected element with 0th element.
LGTM=bradfitz
R=golang-codereviews, bradfitz
CC=golang-codereviews
https://golang.org/cl/91750044
Diffstat (limited to 'src/pkg/runtime/string.c')
0 files changed, 0 insertions, 0 deletions
