Hi all, let's say you have a large number of messages of the same type in memory. One field of this type is marked as repeated: message Test { repeated uint64 foo = 1; } RepeatedField defines the default size to be 4. If most of my objects have 5 foos, I waste a lot of memory.
Is it possible to make kInitialSize into a template parameter of RepeatedField? Thatway I could have different default sizes for different message types. The message description could provide an option for setting a new default length: message Test { repeated uint64 foo = 1 [default_size=5]; } Cheers, Thorsten -- You received this message because you are subscribed to the Google Groups "Protocol Buffers" group. To post to this group, send email to proto...@googlegroups.com. To unsubscribe from this group, send email to protobuf+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/protobuf?hl=en.