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

Save allocation of new promise on each writeAndFlush #19

Closed

Conversation

franz1981
Copy link
Contributor

Using a void promise on Netty writeAndFlush is possible to save
the allocation of a new one on each call.

@franz1981 franz1981 force-pushed the void_promise_write_and_flush branch from 430edd2 to ce1db20 Compare July 3, 2018 10:20
@franz1981
Copy link
Contributor Author

@tabish121 @gemmellr I have rebased it in order to make this PR compatible with the last version 👍

@franz1981
Copy link
Contributor Author

The main source of this optimization is coming from http://normanmaurer.me/presentations/2014-facebook-eng-netty/slides.html#8.0

@tabish121
Copy link
Contributor

I spent some time reviewing netty code and getting a handle on how this would change the current behavior. From what I can see this should be safe to apply. The tests all pass from a local checkout as well. I'd recommend creating a JIRA and updating the PR with the JIRA issue to link up the work done here.

@asfgit asfgit closed this in d5be851 Jul 11, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants