diff options
author | Brad Fitzpatrick <bradfitz@golang.org> | 2014-10-06 15:10:51 -0700 |
---|---|---|
committer | Brad Fitzpatrick <bradfitz@golang.org> | 2014-10-06 15:10:51 -0700 |
commit | 694a58f1ba2dc208fcd6ec7215262d6ae19d110a (patch) | |
tree | 493f75ec429fd7c465ca0ee2ae7234055739f50e /src/syscall | |
parent | b69634e55db1205234ef87e3def9449f26fa4f72 (diff) | |
download | go-694a58f1ba2dc208fcd6ec7215262d6ae19d110a.tar.gz |
strings: use fast path for IndexRune
Noticed while reviewing https://codereview.appspot.com/147690043/
I'd never seen anybody use IndexRune before, and
unsurprisingly it doesn't use the other fast paths in the
strings/bytes packages. IndexByte uses assembly.
Also, less code this way.
LGTM=r
R=r
CC=golang-codereviews
https://codereview.appspot.com/147700043
Diffstat (limited to 'src/syscall')
0 files changed, 0 insertions, 0 deletions