diff options
| author | Martin Möhrmann <martisch@uos.de> | 2016-09-07 08:59:00 +0200 |
|---|---|---|
| committer | Brad Fitzpatrick <bradfitz@golang.org> | 2016-09-08 17:15:28 +0000 |
| commit | 2321895fe2a2def7b511453329f4cd8662230256 (patch) | |
| tree | 79b1cc6cf30d11eebee9bb4554bde52cc3a13435 /src/encoding | |
| parent | 07bcc165475f3c34433ebf48b05f704fd40e5639 (diff) | |
| download | go-2321895fe2a2def7b511453329f4cd8662230256.tar.xz | |
bytes: improve WriteRune performance
Remove the runeBytes buffer and write the utf8 encoding directly
to the internal buf byte slice.
name old time/op new time/op delta
WriteRune-4 80.5µs ± 2% 57.1µs ± 2% -29.06% (p=0.000 n=20+20)
name old speed new speed delta
WriteRune-4 153MB/s ± 2% 215MB/s ± 2% +40.96% (p=0.000 n=20+20)
Change-Id: Ic15f6e2d6e56a3d15c74f56159e2eae020ba73ba
Reviewed-on: https://go-review.googlesource.com/28816
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Diffstat (limited to 'src/encoding')
0 files changed, 0 insertions, 0 deletions
