Is there any update on this? On Monday, May 23, 2016 at 4:20:26 PM UTC+2 [email protected] wrote:
> On Sun, May 22, 2016 at 9:55 PM, Feng Xiao <[email protected]> wrote: > >> >> >> On Sat, May 21, 2016 at 11:47 PM, Noam Schachter <[email protected]> >> wrote: >> >>> Hi, >>> >>> I saw in the release notes that the proto-3 beta3 adds a zero copy >>> serialization to the java API. >>> Does zero copy mean it will be possible to pool and reuse generated >>> messages? or does it only refer to serializing generated messages to output >>> streams? >>> Is there an example or documentation to zero copy serialization ? >>> >> +Nathan >> >> > > "zero copy" refers the the ability to serialize large ByteString fields > without requiring that CodedOutputStream first copy the contents. There is > a new experimental API "ByteOutput" which can be the target of a COS and > has semantics for identifying when the received bytes are read-only (i.e. > references to internals of a ByteString) and therefore need not be copied. > The application would then have to rope together the chunks that are output > by COS before forwarding to the transport. > > We don't yet have any examples on github, but grpc is planning on taking > advantage of this in the near future ... stay tuned. > > >> >>> Thanks, >>> Noam >>> >>> >>> -- >>> 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. >>> >> >> -- This message, and any attachments, is for the intended recipient(s) only, may contain information that is privileged, confidential and/or proprietary and subject to important terms and conditions available at http://www.digitalasset.com/emaildisclaimer.html <http://www.digitalasset.com/emaildisclaimer.html>. If you are not the intended recipient, please delete this message. -- 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 on the web visit https://groups.google.com/d/msgid/protobuf/267e58bc-b7a7-4dc5-8ec9-9860e56db25en%40googlegroups.com.
