1
0
mirror of https://github.com/golang/go synced 2024-10-04 03:21:22 -06:00
go/src/unicode
Martin Möhrmann fd41951c2b unicode/utf8: reduce bounds checks in EncodeRune
Provide bounds elim hints in EncodeRune.

name                  old time/op  new time/op  delta
EncodeASCIIRune-4     2.69ns ± 2%  2.69ns ± 2%    ~     (p=0.193 n=47+46)
EncodeJapaneseRune-4  5.97ns ± 2%  5.38ns ± 2%  -9.93%  (p=0.000 n=49+50)

Change-Id: I1a6dcffff3bdd64ab93c2130021e3b00981de4c8
Reviewed-on: https://go-review.googlesource.com/28492
Reviewed-by: Josh Bleecher Snyder <josharian@gmail.com>
Reviewed-by: Joe Tsai <thebrokentoaster@gmail.com>
Run-TryBot: Josh Bleecher Snyder <josharian@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
2016-09-03 20:05:36 +00:00
..
utf8 unicode/utf8: reduce bounds checks in EncodeRune 2016-09-03 20:05:36 +00:00
utf16 all: make copyright headers consistent with one space after period 2016-03-01 23:34:33 +00:00
casetables.go
digit_test.go
digit.go
example_test.go unicode: add function level examples 2015-11-24 17:13:21 +00:00
graphic_test.go
graphic.go all: single space after period. 2016-03-02 00:13:47 +00:00
letter_test.go unicode: upgrade to version 9.0.0 2016-06-28 15:08:11 +00:00
letter.go unicode: improve SimpleFold performance for ascii 2016-04-26 21:59:50 +00:00
maketables.go unicode: upgrade to version 9.0.0 2016-06-28 15:08:11 +00:00
script_test.go unicode: upgrade to version 9.0.0 2016-06-28 15:08:11 +00:00
tables.go unicode: upgrade to version 9.0.0 2016-06-28 15:08:11 +00:00