commit | 30a9957aacb21fef5195a43dba99669465a789e7 | [log] [tgz] |
---|---|---|
author | Brad Fitzpatrick <bradfitz@golang.org> | Thu Feb 07 16:00:06 2013 -0800 |
committer | Brad Fitzpatrick <bradfitz@golang.org> | Thu Feb 07 16:00:06 2013 -0800 |
tree | 87acc5cdf127b2977402111ec22a9b8b9ff296e2 | |
parent | 7594440ef134ddebc2864d207815eb325adda13f [diff] |
bytes: minor optimization to lastIndexFunc Before and after: BenchmarkTrimSpace 20000000 81.3 ns/op BenchmarkTrimSpace 50000000 58.0 ns/op (most whitespace trimming is ASCII whitespace) Same optimization appeared a handful of other places in this file, but not here. R=golang-dev, dave CC=golang-dev https://golang.org/cl/7305063