I have a PB builder I build and write to a stream from a servlet-based
webapp thousands of times/second.
Something like the following
Protos.Response.Builder respBuilder =
Protos.Response.newBuilder().setFoo(12).setBar(345); // etc. . .
Protos.Response response = respBuilder.build();
Would there be any performance advantage to having a ThreadLocal builder I
reset before processing each request?
You received this message because you are subscribed to the Google Groups
"Protocol Buffers" group.
To post to this group, send email to email@example.com.
To unsubscribe from this group, send email to
For more options, visit this group at