Re: [protobuf] Re: [hypergraphdb] Re: Thoughts on Issue #21 - Looking for peer review comments...

2010-04-12 Thread Kenton Varda
I'm a bit confused about how constructing a builder could be as slow as you describe it. It's just an object allocation. Granted, two objects need to be allocated instead of just one, due to the builder design, but object allocations aren't very expensive. Can you provide more detail on what

Re: [protobuf] Re: [hypergraphdb] Re: Thoughts on Issue #21 - Looking for peer review comments...

2010-04-12 Thread Kenton Varda
Note: I apparently do not have permission to post to hypergraphdb. On Sun, Apr 11, 2010 at 11:17 PM, Kenton Varda ken...@google.com wrote: I'm a bit confused about how constructing a builder could be as slow as you describe it. It's just an object allocation. Granted, two objects need to

[protobuf] serializing the message using the compiled file.

2010-04-12 Thread prashant waykar
This is the compiled proto file. I want to serialize the message (id, title and teh text). Can someone please help me out with this. Thanks in advance. import java.util.Vector; import java.io.IOException; import com.ponderingpanda.protobuf.*; public class Html implements Message {

Re: [protobuf] serializing the message using the compiled file.

2010-04-12 Thread Adam Vartanian
I want to serialize the message (id, title and teh text). Can someone please help me out with this. You can call yourmessage.toByteArray() (or toByteString()) to get it as an object, or yourmessage.writeTo(OutputStream) to send it to an OutputStream. - Adam -- You received this message