Hi, I've got an application where I can't allocate memory while using protobufs. Arenas have been awesome for doing that. I'm able to allocate a big block of memory at startup time or stack allocate memory for the arena, and then use that for allocating protobufs. Thanks!
I'd like to be able to allocate strings in the arena. I'm willing to do the implementation, and wouldn't mind up-streaming if my implementation is complete enough and there is interest. It looks like I should start by implementing ctype=STRING_PIECE and then allocate memory in the arena to back it. The class in //src/google/protobuf:arenastring.h looks like the place to do all the operations. It looks like I need to modify the interface to provide setters and getters to support STRING_PIECE there. Is that the right place to start? Is there any more guidance that you can give me? Thanks, Austin -- You received this message because you are subscribed to the Google Groups "Protocol Buffers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/protobuf. For more options, visit https://groups.google.com/d/optout.
