Skip to content

Replace bytes.Buffer with strings.Builder#54

Merged
zhengchun merged 3 commits intoantchfx:masterfrom
egginabucket:master
Dec 8, 2022
Merged

Replace bytes.Buffer with strings.Builder#54
zhengchun merged 3 commits intoantchfx:masterfrom
egginabucket:master

Conversation

@egginabucket
Copy link
Contributor

strings.Builder has significantly better performance than bytes.Buffer and should be used instead.

Some minor changes have also been made to the tests, including replacing a call to fmt.Fprintln with Fprint and using !strings.Contains instead of strings.Index(s, substr) == -1.

@zhengchun zhengchun merged commit f67a4b2 into antchfx:master Dec 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants