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

Don't allocate an endpoint response buffer for every driver wakeup #1730

Merged
merged 1 commit into from
Dec 21, 2023

Conversation

Ralith
Copy link
Collaborator

@Ralith Ralith commented Dec 21, 2023

Most packets (under good conditions), let alone most wakeups, don't require a response from the endpoint, so this was very wasteful. BytesMut::new is guaranteed to grow automatically when needed.

Copy link
Member

@djc djc left a comment

Choose a reason for hiding this comment

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

Nice!

@Ralith Ralith merged commit 7b6a448 into main Dec 21, 2023
8 checks passed
@Ralith Ralith deleted the reduce-malloc branch December 21, 2023 08:54
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