]> Cypherpunks.ru repositories - gostls13.git/commit
unicode/utf8: make FullRune inlinable
authorIlya Tocar <ilya.tocar@intel.com>
Tue, 12 Sep 2017 19:23:09 +0000 (14:23 -0500)
committerIlya Tocar <ilya.tocar@intel.com>
Tue, 12 Sep 2017 20:18:53 +0000 (20:18 +0000)
commit6237ab2c3155ed4c4fa064d1f0cb4f81eda10be1
treef4c0b8347a3c9730037f72010f808c775779c94b
parent6d33df1d65c405a3624dbb792112b8ce399f470f
unicode/utf8: make FullRune inlinable

This has same readability and allows to inline FullRune for massive
performance gain:

FullASCIIRune-6                      4.36ns ± 0%  1.25ns ± 0%  -71.33%  (p=0.000 n=8+10)
FullJapaneseRune-6                   4.70ns ± 0%  1.42ns ± 1%  -69.68%  (p=0.000 n=9+10)

Change-Id: I95edd6292417a28aac244e40afb713596a087d93
Reviewed-on: https://go-review.googlesource.com/63332
Run-TryBot: Ilya Tocar <ilya.tocar@intel.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Daniel Martí <mvdan@mvdan.cc>
src/unicode/utf8/utf8.go