Status: New
Labels: Type-Defect Priority-Medium

New issue 364 by Make static serialization and deserialization of messages in java

The problem:
 * during serialization/deserialization a lot of unnecessary objects created
* a lot of garbage affects application performance. Also it causes performance spikes which are critical to low latency messaging applications

The solution:
 * add option to generate POJO and/or interfaces for protobuf messages.
 * make XXXSerializer/XXXDeserializer static
 * make methods in CodedInputStream/CodedOutputStream static

As proof of concept I implemented full featured solution:

In tests it gives significant improvements in latency for serialization to stream and huge improvements in consumed memory while serializing/deserializing.

You received this message because you are subscribed to the Google Groups "Protocol 
Buffers" group.
To post to this group, send email to
To unsubscribe from this group, send email to
For more options, visit this group at

Reply via email to