You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This may sound silly, but it's easy to implement.
The underlying issue is that ContainsAny is not always a fast choice.
See https://github.com/golang/go/issues/31321
TODO: do the actual benchmarking.
The text was updated successfully, but these errors were encountered:
I think initially I was concerned about this case: strings.ContainsAny(s, "ab") vs 2 calls of ContainsRune or one manually written loop, like in the referenced issue.
This may sound silly, but it's easy to implement.
The underlying issue is that
ContainsAny
is not always a fast choice.See
https://github.com/golang/go/issues/31321
TODO: do the actual benchmarking.
The text was updated successfully, but these errors were encountered: