]> Cypherpunks repositories - gostls13.git/commit
strings: improve explode and correct comment
authorMartin Möhrmann <martisch@uos.de>
Fri, 25 Mar 2016 23:04:48 +0000 (00:04 +0100)
committerIan Lance Taylor <iant@golang.org>
Wed, 13 Apr 2016 04:54:03 +0000 (04:54 +0000)
commit819e0b29bbbc07022e7b94c12b55860466a02e5b
tree5f217a1da3e497402a45cdb25cd05c46dce80132
parent3f66d8c84b4b3d685db1031954d3343a7a8c9d0f
strings: improve explode and correct comment

Merges explodetests into splittests which already contain
some of the tests that cover explode.

Adds a test to cover the utf8.RuneError branch in explode.

name      old time/op  new time/op  delta
Split1-2  14.9ms ± 0%  14.2ms ± 0%  -4.06%  (p=0.000 n=47+49)

Change-Id: I00f796bd2edab70e926ea9e65439d820c6a28254
Reviewed-on: https://go-review.googlesource.com/21609
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/strings/strings.go
src/strings/strings_test.go