Details
-
Improvement
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
-
Mesosphere Sprint 2018-25, Mesosphere Sprint 2018-26
-
3
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