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

Feature: add multiple publish requests #17

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

Conversation

sharpfuryz
Copy link

@sharpfuryz sharpfuryz commented Apr 21, 2023

Feature: this code allows to push multiple publish operation without mutex lock/unlock which improves performance if you need to send a lot of different messages into different channels.

@sharpfuryz sharpfuryz changed the title feat: add many Feature: add multiple publish requests Apr 21, 2023
@sharpfuryz
Copy link
Author

@FZambia please review

@FZambia
Copy link
Member

FZambia commented Apr 21, 2023

Hello @sharpfuryz

It seems to me that the overhead of mutex should be negligible here, especially since there should not be any lock contention. Probably what you really need is a way to create a Pipe with preallocated capacity of commands slice?

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