]> Cypherpunks repositories - gostls13.git/commit
strings: use fast path for IndexRune
authorBrad Fitzpatrick <bradfitz@golang.org>
Mon, 6 Oct 2014 22:10:51 +0000 (15:10 -0700)
committerBrad Fitzpatrick <bradfitz@golang.org>
Mon, 6 Oct 2014 22:10:51 +0000 (15:10 -0700)
commit4731c382f6875863dc27f33088f53bce8f82c620
treecf9e197b4cddee800e83cf1f984c190d02f886f3
parentf8f95590d946bb4619599f909b6facf14f9bed03
strings: use fast path for IndexRune

Noticed while reviewing https://golang.org/cl/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://golang.org/cl/147700043
src/strings/strings.go