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

fix(connection): back pressure for send API even when no_ack #1

Conversation

zmstone
Copy link
Member

@zmstone zmstone commented Jan 7, 2021

No description provided.

zmstone added 3 commits March 23, 2020 13:24
* Improve produce request encoding performance

Also added a simple eunit test to benchmark
produce request encoding before/after performance
this patch speeds up encoding around 35%

* Allow #kpro_msg.msg to be iodata()

* Delete remote call to iolist_size

* No need to make binary for enif_inspect_iolist_as_binary

The naive idea was to ensure binary so nif should not need to
copy iolist as binary (it would take the already created binary directly)

* Avoid iolist_to_binary when encoding string
@zmstone zmstone requested a review from turtleDeng January 7, 2021 13:24
@turtleDeng
Copy link
Member

Please add appup file

@turtleDeng turtleDeng merged commit c4c340c into emqx:master Jan 11, 2021
@zmstone zmstone deleted the pushback-from-connection-process-even-when-no-ack branch January 11, 2021 21:34
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