Is there a performance penalty for calling getSerializedSize() on a GPB message before serializing the message with writeTo(OutputStream)?
I need to be able to know the size of a message before writing it to an output stream.
I'm using GPB on Java.