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

Serialize Json<T> to Bytes instead of Vec<u8> in IntoResponse #1178

Merged
merged 1 commit into from Jul 20, 2022

Conversation

jplatte
Copy link
Member

@jplatte jplatte commented Jul 20, 2022

This should remove an unnecessary copy of the serialized JSON. Currently we created Full<Bytes> from the Vec<u8> (copying all contents), with this we will create Full<Bytes> from Bytes (no-op).

@davidpdrsn davidpdrsn enabled auto-merge (squash) July 20, 2022 16:28
@davidpdrsn davidpdrsn merged commit a3cf025 into main Jul 20, 2022
@davidpdrsn davidpdrsn deleted the jplatte/json-buf branch July 20, 2022 16:32
davidpdrsn added a commit that referenced this pull request Jul 25, 2022
Backports these PRs to 0.5.x

- #1192
- #1185
- #1178
- #1171
@davidpdrsn davidpdrsn mentioned this pull request Jul 25, 2022
davidpdrsn added a commit that referenced this pull request Jul 25, 2022
Backports these PRs to 0.5.x

- #1192
- #1185
- #1178
- #1171
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.

None yet

2 participants