Re: [protobuf] Max number of repeated fields

2014-01-30 Thread Feng Xiao
On Thu, Jan 30, 2014 at 6:48 AM, Øyvind Bakken oyv...@gmail.com wrote: We have a protobuf message defined in the following way: message ModuleEntry { optional uint32 id = 1; optional string name = 2; optional uint32 type = 3; repeated ParameterEntry parameter = 4;

Re: [protobuf] Max number of repeated fields?

2010-08-31 Thread Kenton Varda
std::bad_alloc comes from your system's memory allocator, not from protocol buffers. I would guess that the round number is because it creates buckets for each allocation size, and you aren't allocating anything else that is the same size as B. So 0x100 is your system's bucket limit. You