It looks like all broadcasts so far comprise of wrapping a specified byte slice into an envelope and sending it over the channel *Melody.hub.broadcast.
For performance reasons, I'm looking to minimize the number of allocations by using sync.Pool and need to know when a broadcast has been done synchronously.
Would you be open to a PR for this?
It looks like all broadcasts so far comprise of wrapping a specified byte slice into an
envelopeand sending it over the channel*Melody.hub.broadcast.For performance reasons, I'm looking to minimize the number of allocations by using
sync.Pooland need to know when a broadcast has been done synchronously.Would you be open to a PR for this?