1
0
mirror of https://github.com/golang/go synced 2024-10-05 11:31:22 -06:00
go/src/unicode
Alberto Donizetti 7786f97905 unicode/utf16: speed up and clean up Decode
name                        old time/op  new time/op  delta
DecodeValidASCII-4          94.7ns ± 1%  87.4ns ± 1%  -7.71%  (p=0.000 n=10+9)
DecodeValidJapaneseChars-4  91.0ns ± 2%  84.8ns ± 0%  -6.77%  (p=0.000 n=9+10)
DecodeRune-4                16.5ns ± 0%  16.6ns ± 2%    ~     (p=0.108 n=9+10)

For #6957

Change-Id: I618c15c2a42ef7ec6a5cd163b7c3f1a65ca4ad01
Reviewed-on: https://go-review.googlesource.com/19826
Reviewed-by: Rob Pike <r@golang.org>
2016-02-23 21:09:07 +00:00
..
utf8 unicode/utf8: add test for FullRune 2015-12-01 10:39:06 +00:00
utf16 unicode/utf16: speed up and clean up Decode 2016-02-23 21:09:07 +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 unicode: Fixed an out of date comment (MaxLatin1, not Latin1Max). 2015-02-16 21:35:33 +00:00
letter_test.go unicode: upgrade to 8.0.0 2015-06-26 18:01:29 +00:00
letter.go
maketables.go unicode: include rune 0 in RangeTables. 2015-08-24 15:05:48 +00:00
script_test.go unicode: upgrade to 8.0.0 2015-06-26 18:01:29 +00:00
tables.go unicode: include rune 0 in RangeTables. 2015-08-24 15:05:48 +00:00