Have you looked into requiring a 3.x protobuf compiler? The 3.x series
compiler provides performance improvements via arenas for "syntax = proto2"
IIUC:

https://developers.google.com/protocol-buffers/docs/reference/arenas

I filed a specific use case here:
https://issues.apache.org/jira/browse/MESOS-6971

And there's an epic for tracking other initial use cases:
https://issues.apache.org/jira/browse/MESOS-5783

Ben

On Fri, Feb 17, 2017 at 9:55 AM, haosdent <haosd...@gmail.com> wrote:

> Cool, thx @asottile's great work!
>
> On Fri, Feb 17, 2017 at 3:18 PM, Joseph Wu <jos...@mesosphere.io> wrote:
>
> > Hi devs/contributors,
> >
> > The next time you checkout HEAD and open a .proto file, you may notice
> this
> > line at the top of the file (after the Apache license, of course):
> >
> >     syntax = "proto2";
> >
> > This has been added to all our protobufs in order to allow different
> > versions of the protobuf compiler to process our protobufs.  This change
> > *does
> > not *change anything about the generated code, or the wire format, or
> > anything else.  The new line purely addresses a warning printed by
> protoc.
> >
> > If you need to add any new protobufs, make sure you add the "syntax =
> ..."
> > in future.
> >
> > See this and related issues for some more details:
> > https://issues.apache.org/jira/browse/MESOS-6138
> >
> > ~Joseph
> >
>
>
>
> --
> Best Regards,
> Haosdent Huang
>

Reply via email to