go/src/strings
Ilya Tocar 0cff219c12 strings: use AVX2 for Index if available
IndexHard4-4      1.50ms ± 2%  0.71ms ± 0%  -52.36%  (p=0.000 n=20+19)

This also fixes a bug, that caused a string of length 16 to use
two 8-byte comparisons instead of one 16-byte. And adds a test for
cases when partial_match fails.

Change-Id: I1ee8fc4e068bb36c95c45de78f067c822c0d9df0
Reviewed-on: https://go-review.googlesource.com/22551
Run-TryBot: Ilya Tocar <ilya.tocar@intel.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Keith Randall <khr@golang.org>
2016-09-07 10:43:13 +00:00
..
compare.go all: make copyright headers consistent with one space after period 2016-03-01 23:34:33 +00:00
compare_test.go all: single space after period. 2016-03-02 00:13:47 +00:00
example_test.go strings: Add examples for HasPrefix and HasSuffix 2015-10-23 01:57:15 +00:00
export_test.go
reader.go all: use SeekStart, SeekCurrent, SeekEnd 2016-05-06 00:10:41 +00:00
reader_test.go strings, bytes: fix Reader 0 byte read at EOF 2016-05-03 21:01:13 +00:00
replace.go
replace_test.go
search.go
search_test.go
strings.go strings: make IndexRune faster 2016-09-07 01:03:10 +00:00
strings.s
strings_amd64.go strings: use AVX2 for Index if available 2016-09-07 10:43:13 +00:00
strings_decl.go all: make copyright headers consistent with one space after period 2016-03-01 23:34:33 +00:00
strings_generic.go all: make copyright headers consistent with one space after period 2016-03-01 23:34:33 +00:00
strings_test.go strings: use AVX2 for Index if available 2016-09-07 10:43:13 +00:00