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
Since strings.Builder has better performance that bytes.Buffer in join strings. I think we can add a static analysis pass for our user to check whether the bytes.Buffer can be replaced by strings.Builder.
The text was updated successfully, but these errors were encountered:
It is not an error to use bytes.Buffer, and it often matters little which one to use. In tests, for example, it is usually unimportant.
I presume you are referring to adding a check to vet, but this proposal would not satisfy the criteria in cmd/vet/README.
rsc
changed the title
proposal: add static analysis pass to check whether bytes.Buffer should be replace by strings.Builder
proposal: cmd/vet: add static analysis pass to check whether bytes.Buffer should be replace by strings.Builder
Sep 28, 2022
Since strings.Builder has better performance that bytes.Buffer in join strings. I think we can add a static analysis pass for our user to check whether the bytes.Buffer can be replaced by strings.Builder.
The text was updated successfully, but these errors were encountered: