-
Notifications
You must be signed in to change notification settings - Fork 89
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
optimization: reduce heap allocation #970
Conversation
Prefer str::from_utf8 over String::from_utf8 to avoid unnecesary heap allocation
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #970 +/- ##
=======================================
Coverage 70.24% 70.24%
=======================================
Files 177 177
Lines 17730 17730
=======================================
Hits 12455 12455
Misses 5275 5275 ☔ View full report in Codecov by Sentry. |
Thanks a bunch for this PR @blasrodri. Just needs a unclog + |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🙏
* optimization: reduce heap allocation Prefer str::from_utf8 over String::from_utf8 to avoid unnecesary heap allocation * fmt * chore: add unclog --------- Co-authored-by: Farhad Shabani <farhad.shabani@gmail.com>
Prefer str::from_utf8 over String::from_utf8 to avoid
unnecesary heap allocation
Closes: #XXX
Description
PR author checklist:
unclog
.docs/
).Reviewer checklist:
Files changed
in the GitHub PR explorer.