1
0
mirror of https://github.com/golang/go synced 2024-11-25 09:57:57 -07:00
go/src/unicode
Cuong Manh Le 3d33437c45 unicode/utf8: speedup RuneCount
CL 612617 did speedup RuneCountInString, thus we can now use it to
speedup RuneCount, too.

name                         old time/op    new time/op    delta
RuneCountTenASCIIChars-8       8.69ns ± 1%    3.59ns ± 2%  -58.66%  (p=0.000 n=9+9)
RuneCountTenJapaneseChars-8    49.8ns ± 2%    40.9ns ± 0%  -17.94%  (p=0.000 n=10+8)

Change-Id: I311750c00efc79af35fb0ca3b482a5d94e0a7977
Reviewed-on: https://go-review.googlesource.com/c/go/+/612955
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Auto-Submit: Cuong Manh Le <cuong.manhle.vn@gmail.com>
Reviewed-by: Tim King <taking@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
2024-09-15 02:05:37 +00:00
..
utf8 unicode/utf8: speedup RuneCount 2024-09-15 02:05:37 +00:00
utf16 bytes,strings,unicode/utf16: use slices to clean up tests 2024-07-24 18:45:08 +00:00
casetables.go
digit_test.go
digit.go
example_test.go
graphic_test.go
graphic.go unicode: add available godoc link 2023-11-06 20:02:46 +00:00
letter_test.go unicode: improve SimpleFold performance by 2x for non-foldable code points 2024-09-03 20:54:56 +00:00
letter.go unicode: improve SimpleFold performance by 2x for non-foldable code points 2024-09-03 20:54:56 +00:00
script_test.go
tables.go