RobertIndie commented on PR #1055:
URL: 
https://github.com/apache/pulsar-client-go/pull/1055#issuecomment-1635610142

   > I think it is possible to do that, the trade off is we have to call 
sheame.Encode() and p.compressionProvider.Compress() before entering the 
dataChan, that will affect performance of the go routine of the application. 
Or, add another channel and go routine to the producer (not partitionProducer) 
to do these preparing work.
   
   @gunli Yes. That would be a performance issue. But if we introduce another 
channel, we still need to wait for the channel and block the user goroutine. 
And it also introduces more complexity.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to