Using 2.4.1 version of protobuf java. The message structure is flat and has 
a flat structure with 315 fields as in 

option java_package = "......"

option optimize_for = SPEED;

option java_generate_equals_and_hash = true;

message X {

string field1 = 1;
string field2  = 2;

string field315 = 315;


Seeing 40-50% degradation in deserialization performance after the fields 
touched around 280 or so. Please suggest how we can optimize this ? Will 
upgrading to 2.5 help or any other way to optimize this ? 

The information contained in this communication is intended solely for the 
use of the individual or entity to whom it is addressed and others 
authorized to receive it. It may contain confidential or legally privileged 
information. If you are not the intended recipient you are hereby notified 
that any disclosure, copying, distribution or taking any action in reliance 
on the contents of this information is strictly prohibited and may be 
unlawful. If you have received this communication in error, please notify 
us immediately by responding to this email and then delete it from your 
system. The firm is neither liable for the proper and complete transmission 
of the information contained in this communication nor for any delay in its 

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

Reply via email to