gocent icon indicating copy to clipboard operation
gocent copied to clipboard

Feature: add multiple publish requests

Open sharpfuryz opened this issue 1 year ago • 2 comments

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 avatar Apr 21 '23 08:04 sharpfuryz

@FZambia please review

sharpfuryz avatar Apr 21 '23 10:04 sharpfuryz

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?

FZambia avatar Apr 21 '23 17:04 FZambia