vishalmore90 commented on PR #41039:
URL: https://github.com/apache/beam/pull/41039#issuecomment-7316772215

   Thank you for taking the time to review this, @tkaymak
   
   The round-trip tests didn't directly verify the initial buffer capacity. 
I've extracted the sizing logic into a package-private computeBufferSize(T 
value, Coder<T> coder) helper in ValueAndCoderLazySerializable and added 
computeBufferSizeTest in ValueAndCoderLazySerializableTest to assert 4 for 
BigEndianIntegerCoder and 1024 for both a non-cheap coder and a lazy coder.


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