]> Cypherpunks repositories - gostls13.git/commit
net: use IndexByte implementation from runtime package
authorIlya Tocar <ilya.tocar@intel.com>
Thu, 15 Oct 2015 15:59:01 +0000 (18:59 +0300)
committerBrad Fitzpatrick <bradfitz@golang.org>
Fri, 16 Oct 2015 16:58:52 +0000 (16:58 +0000)
commit7d86d5744484bd3297acb7c4a71fadd5670e5f82
treedf1b62c1f9325dee07ad20f7254d3c0035063ca2
parent9358f7fa6117445af2775076600d8df76616a7fc
net: use IndexByte implementation from runtime package

In net/parse.go we reimplement bytes.IndexByte and strings.IndexByte,
However those are implemented in runtime/$GOARCH_asm.s.
Using versions from runtime should provide performance advantage,
and keep the same code together.

Change-Id: I6212184bdf6aa1f2c03ce26d4b63f5b379d8ed0c
Reviewed-on: https://go-review.googlesource.com/15953
Run-TryBot: Ilya Tocar <ilya.tocar@intel.com>
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/net/parse.go