Skip to content

Use the more efficient strings.Builder  #15910

@cuishuang

Description

@cuishuang

What would you like to be added?

strings.Builder has better performance than bytes.Buffer, use strings.Builder instead of bytes.Buffer where appropriate.

Why is this needed?

This is also the official practice of go.

Related Links:
https://go-review.googlesource.com/c/go/+/102479
https://go-review.googlesource.com/c/go/+/96980

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions