go/src/bytes
Keith Randall 687abca1ea runtime: avoid using REP prefix for IndexByte
REP-prefixed instructions have a large startup cost.
Avoid them like the plague.

benchmark                  old ns/op     new ns/op     delta
BenchmarkIndexByte10-8     22.4          5.34          -76.16%

Fixes #13983

Change-Id: I857e956e240fc9681d053f2584ccf24c1b272bb3
Reviewed-on: https://go-review.googlesource.com/18703
Reviewed-by: Minux Ma <minux@golang.org>
Run-TryBot: Keith Randall <khr@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
2016-02-26 01:09:53 +00:00
..
buffer.go bytes: make Buffer comment more accurate 2016-02-21 03:57:24 +00:00
buffer_test.go bytes: export Cap method for buffer 2015-04-03 23:50:02 +00:00
bytes.go bytes, strings: add LastIndexByte 2015-04-30 07:13:18 +00:00
bytes_decl.go all: update old comments referencing *.goc files 2015-01-15 16:31:52 +00:00
bytes_test.go runtime: avoid using REP prefix for IndexByte 2016-02-26 01:09:53 +00:00
compare_test.go runtime: add runtime.cmpstring and bytes.Compare 2015-03-25 22:46:39 +00:00
equal_test.go
example_test.go
export_test.go bytes: export Cap method for buffer 2015-04-03 23:50:02 +00:00
reader.go bytes, strings: add Reader.Size methods 2015-04-06 08:53:47 +00:00
reader_test.go bytes, strings: add Reader.Size methods 2015-04-06 08:53:47 +00:00