You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@mesos.apache.org by "Benjamin Mahler (JIRA)" <ji...@apache.org> on 2017/01/23 00:17:26 UTC

[jira] [Created] (MESOS-6972) Improve performance of protobuf message passing by removing RepeatedPtrField to vector conversion.

Benjamin Mahler created MESOS-6972:
--------------------------------------

             Summary: Improve performance of protobuf message passing by removing RepeatedPtrField to vector conversion.
                 Key: MESOS-6972
                 URL: https://issues.apache.org/jira/browse/MESOS-6972
             Project: Mesos
          Issue Type: Improvement
          Components: libprocess, technical debt
            Reporter: Benjamin Mahler


Currently, all protobuf message handlers must take a {{vector}} for repeated fields, rather than a {{RepeatedPtrField}}.

This requires that a copy be performed of the repeated field's entries (see [here|https://github.com/apache/mesos/blob/9228ebc239dac42825390bebc72053dbf3ae7b09/3rdparty/libprocess/include/process/protobuf.hpp#L78-L87]), which can be very expensive in some cases. We should avoid requiring this expense on the callers.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)