aboutsummaryrefslogtreecommitdiff
path: root/src/encoding
diff options
context:
space:
mode:
authorJoe Tsai <joetsai@digital-static.net>2022-06-15 17:39:59 -0700
committerJoseph Tsai <joetsai@digital-static.net>2023-08-17 05:23:49 +0000
commit2fcfdb96860855be0c88e10e3fd5bb858420cfe2 (patch)
treee67148d650571d8b6349da2d3e62c53857401c39 /src/encoding
parent1c0035401358c8bfc2ff646b1d950da5fcd6b355 (diff)
downloadgo-2fcfdb96860855be0c88e10e3fd5bb858420cfe2.tar.xz
strconv: rely on utf8.AppendRune
This is both simpler and more performant. Quote 268ns ± 5% 258ns ± 4% -3.70% (p=0.014 n=10+10) QuoteRune 28.9ns ± 3% 28.4ns ± 4% ~ (p=0.113 n=9+10) AppendQuote 165ns ± 3% 165ns ± 3% ~ (p=0.661 n=9+10) AppendQuoteRune 8.05ns ± 5% 7.75ns ± 7% ~ (p=0.065 n=10+9) Change-Id: Ib0ee332e970d4986026c05e5e0e368f41eff7977 Reviewed-on: https://go-review.googlesource.com/c/go/+/412338 TryBot-Result: Gopher Robot <gobot@golang.org> Reviewed-by: Ian Lance Taylor <iant@google.com> Run-TryBot: Joseph Tsai <joetsai@digital-static.net> Reviewed-by: Robert Griesemer <gri@google.com>
Diffstat (limited to 'src/encoding')
0 files changed, 0 insertions, 0 deletions