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

Use references to serialize dpe response in InvokeDpe #1973

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

clundin25
Copy link
Contributor

Use references to serialize dpe response in InvokeDpe
This saves 6272 bytes on the stack.

@clundin25 clundin25 force-pushed the invoke-resp-zerocopy branch 2 times, most recently from 71eef4f to f088ce1 Compare February 21, 2025 21:08
This saves 6272 bytes on the stack.
@clundin25 clundin25 force-pushed the invoke-resp-zerocopy branch from f088ce1 to 0527869 Compare February 21, 2025 21:08
Comment on lines -157 to +168
Response::Error(ResponseHdr::new(e))
let r = ResponseHdr::try_mut_from_bytes(
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since Response::Error::as_bytes calls the inner ResponseHdr::as_bytes the data being serialized has not changed.

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