Uploaded image for project: 'Mesos'
  1. Mesos
  2. MESOS-9110

Add move support to the Resources / Resource_ wrappers.

Attach filesAttach ScreenshotVotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.7.0
    • None

    Description

      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

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            mzhu Meng Zhu
            bmahler Benjamin Mahler
            Benjamin Mahler Benjamin Mahler
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Agile

                Completed Sprints:
                Mesosphere Sprint 2018-25 ended 02/Aug/18
                Mesosphere Sprint 2018-26 ended 17/Aug/18
                View on Board

                Slack

                  Issue deployment