New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
strings: Index(s, "x") not as optimized as bytes.IndexByte #3751
Labels
Milestone
Comments
On the runtime.eqstring topic: I've been dealing with database type app that scans through lots of strings doing equality comparisons, where depending on some details, the variability in the string is known to be at the start or at the end. I believe it would have been very useful to have something like strings.Equal(s1, s2 string, reverse bool) bool that calls into some suitable assembler somewhere. Could probably roll our own, but this seems close to the kind of thing the runtime should be good at. |
This issue was updated by revision 3d5daa2. R=bradfitz, r, khr, dave, remyoudompheng, fullung, minux.ma, ality CC=golang-dev https://golang.org/cl/8056043 |
I opened a related issue #5354 for bytes.Compare. |
This issue was updated by revision e2a1bd6. R=golang-dev, r CC=golang-dev https://golang.org/cl/12289043 |
This issue was closed by revision 598c789. Status changed to Fixed. |
This issue was closed.
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
The text was updated successfully, but these errors were encountered: