[protobuf] 1MB message limit (recommendation)

2012-05-30 Thread msrobo
According to the documentation, it's recommended that the message size be = 1 Megabyte. I've searched around for the reason for this recommendation, but I can't seem to find anything. Based on some basic benchmarking serializing/unserializing messages ranging from a few KB to more than 1MB in C++

[protobuf] How to add custom #include in the Header of generated protobuf header file

2012-05-30 Thread emerico
Dear all, i have generated some C++ code from a protobuf message. the c++ code was generated with the option: -- cpp_out=dllexport_decl=MY_IMPORT_EXPORT so that the generated classes all have a __declspec. my problem is that I need to include at leat one header in the generated header files so

Re: [protobuf] 1MB message limit (recommendation)

2012-05-30 Thread Evan Jones
On May 29, 2012, at 23:26 , msrobo wrote: According to the documentation, it's recommended that the message size be = 1 Megabyte. I've searched around for the reason for this recommendation, but I can't seem to find anything. Based on some basic benchmarking serializing/unserializing messages

[protobuf] DescriptorPool: call to FindFileByName() required before call to FindMessageTypeByName()?

2012-05-30 Thread Dan
Hi, In the code below, I've found that the returned Descriptor* is NULL after I call FindMessageTypeByName(), *unless* I first call FindFileByName() on the .proto which contains the Message I am looking for. Is this a bug? Is there another way to do this? I would really like to be able to