mesos-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Meng Zhu (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (MESOS-9110) Add move support to the Resources / Resource_ wrappers.
Date Mon, 06 Aug 2018 19:05:00 GMT

    [ https://issues.apache.org/jira/browse/MESOS-9110?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16570476#comment-16570476
] 

Meng Zhu edited comment on MESOS-9110 at 8/6/18 7:04 PM:
---------------------------------------------------------

https://reviews.apache.org/r/68196/
https://reviews.apache.org/r/68197/
https://reviews.apache.org/r/68242/


was (Author: mzhu):
https://reviews.apache.org/r/68196/
https://reviews.apache.org/r/68197/

> Add move support to the Resources / Resource_ wrappers.
> -------------------------------------------------------
>
>                 Key: MESOS-9110
>                 URL: https://issues.apache.org/jira/browse/MESOS-9110
>             Project: Mesos
>          Issue Type: Improvement
>            Reporter: Benjamin Mahler
>            Assignee: Meng Zhu
>            Priority: Major
>              Labels: mesosphere, performance
>
> Currently, the Resources / Resource_ wrappers do not have move support. Since copying
resources are rather expensive (especially when there's large ports ranges or metadata like
reservations / labels), we should add move support to reduce copying automatically where possible:
> * Constructors for both Resources and Resource_
> * +, +=, addition operations: with addition we sometimes need to add the resource to
the vector in which case we can move if taking an rvalue



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message