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

Avoid using owned String in deserializers #11764

Merged
merged 1 commit into from
Feb 25, 2025
Merged

Avoid using owned String in deserializers #11764

merged 1 commit into from
Feb 25, 2025

Conversation

charliermarsh
Copy link
Member

Summary

This is the pattern I see in a variety of crates, and I believe this is preferred if you don't need an owned String, since you can avoid the allocation. This could be pretty impactful for us?

@charliermarsh charliermarsh marked this pull request as draft February 25, 2025 05:46
@charliermarsh charliermarsh marked this pull request as ready for review February 25, 2025 06:11
@charliermarsh charliermarsh added the performance Potential performance improvement label Feb 25, 2025
@charliermarsh charliermarsh enabled auto-merge (squash) February 25, 2025 07:06
@charliermarsh charliermarsh enabled auto-merge (squash) February 25, 2025 14:20
@charliermarsh charliermarsh merged commit c37af94 into main Feb 25, 2025
74 checks passed
@charliermarsh charliermarsh deleted the charlie/p-1 branch February 25, 2025 14:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
performance Potential performance improvement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant