Re: [protobuf] Re: adding submessages to higher message

2011-04-24 Thread Pherl Liu
Yes, you should use AddAllocated() in this case. Noted that the ownership of the object will be passed to the wrapper proto. On Thu, Apr 21, 2011 at 7:12 AM, Aaron Rich wrote: > I found the method: > AddAllocated(Element*) > > which I think will add the Pong* that I have already created/allocate

Re: [protobuf] Reusing builders. . .

2011-04-24 Thread Pherl Liu
You might want to have a benchmark for this. Allocation in Java is cheap, but would increase the GC costs; resetting builder will introduce some CPU overhead (recursively setting data members and bit masks). On Fri, Apr 22, 2011 at 6:15 AM, David Dabbs wrote: > Hello. > > I have a PB builder I b

[protobuf] Re: "Modern" Java RPC implementations

2011-04-24 Thread Blair Zajac
We use ZeroC's Ice for this. We have a mixture of Java, Scala, Python and C++ servers and clients that all work together. They have an extension to their protocol where you can use Protobufs to exchange structures between clients and servers. You write a file similar to a .proto file that define