On Mon, Dec 15, 2014 at 8:33 PM, Sumit Kumar <[email protected]> wrote: > > Does Arena allocator support custom memory pool override ? Can NUMA aware > memory pools be used instead ? > No. We can consider adding support for custom memory pools, but I think it might be very hard. The current arena code has its built-in memory allocation mechanism and is highly optimized for that. Supporting custom memory pools will probably require a rewrite of arena code.
> > Any change to the set_allocated ? > We added a new generated method "unsafe_arena_set_allocated" which behaves the same way as the old "set_allocated". The new "set_allocated" implementation will check whether the passed-in object is on the same arena of the containing message and if it's not, a copy will be made. > > Regards, > Sumit Kumar > > On 13 Dec 2014, at 2:20 am, 'Feng Xiao' via Protocol Buffers < > [email protected]> wrote: > > > > On Fri, Dec 12, 2014 at 5:56 AM, Jeremy Swigart <[email protected]> > wrote: >> >> Does the arena allocator also get used by messages allocated as children >> of the root message? >> > Yes. > > >> >> -- >> 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 http://groups.google.com/group/protobuf. >> For more options, visit https://groups.google.com/d/optout. >> > -- > 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 http://groups.google.com/group/protobuf. > For more options, visit https://groups.google.com/d/optout. > > -- 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 http://groups.google.com/group/protobuf. For more options, visit https://groups.google.com/d/optout.
