BewareMyPower commented on PR #968:
URL: https://github.com/apache/pulsar-client-go/pull/968#issuecomment-1450114393

   > Do you have a bench result on this change? Since you declaim that it's a 
performance improvement.
   
   I will paste a result soon. Though it might not be significant.
   
   > Also, why do you remove impl_message_bench_test.go?
   
   See my PR description.
   
   > Remove the benchmark added in
   https://github.com/apache/pulsar-client-go/pull/324. The result is obvious 
and this test is meaningless. I tried passing the trackingMessageID by pointer 
and the result reduced from 8.548 ns/op to 1.628 ns/op. It's obvious because a 
pointer is only 8 bytes while a trackingMessageID is 64 bytes. The overhead of 
accessing by pointers is far less than copying the extra bytes.


-- 
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