Skip to content
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

perf(build): Avoid extra string allocation #409

Merged
merged 1 commit into from
Aug 13, 2022

Conversation

afnanenayet
Copy link
Owner

This addresses a clippy lint that pointed out that pushing a string from
format adds an extra allocation. Writing to the string directly is
more efficient.

This addresses a clippy lint that pointed out that pushing a string from
`format` adds an extra allocation. Writing to the string directly is
more efficient.
@afnanenayet afnanenayet force-pushed the afnan/use-write-instead-of-format branch from ff1c6ea to 6763394 Compare August 13, 2022 18:17
@afnanenayet afnanenayet merged commit 93f3d49 into main Aug 13, 2022
@afnanenayet afnanenayet deleted the afnan/use-write-instead-of-format branch August 13, 2022 18:21
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.

1 participant