I solved this problem https://medium.com/@unclepaul84/efficiently-reading-and-writing-very-large-protobuf-files-local-disk-and-s3-approaches-a289c8855606
On Monday, September 7, 2009 at 11:45:13 PM UTC-5 Kenton Varda wrote: > Sorry, it's actually SerializeWithCachedSizesToArray(). It's defined on > the MessageLite interface so every protocol message object has this method. > > On Mon, Sep 7, 2009 at 7:03 AM, Dave W. <[email protected]> wrote: > >> >> > To allocate a correctly-sized array and >> > serialize to it with optimal efficiency you have to use ByteSize() and >> then >> > call SerializeToArrayWithCachedSizes() -- which reuses the sizes >> computed by >> > the previous ByteSize() call. >> >> Where is this SerializeToArrayWithCachedSizes() call? I can't find it >> anywhere in the code. Does it really exist somewhere? >> >> > -- 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 view this discussion visit https://groups.google.com/d/msgid/protobuf/7a4b9f51-4780-48d5-b3e9-c28fc839dff2n%40googlegroups.com.
