[ https://issues.apache.org/jira/browse/MESOS-8301?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16279344#comment-16279344 ]
Michael Park commented on MESOS-8301: ------------------------------------- {noformat} commit 13eda27802cfe05800d4dcbed22c46ca7b46bafb Author: Dmitry Zhuk <dz...@twopensource.com> Date: Tue Dec 5 10:40:37 2017 -0800 Prepared `defer` for use in callable-once contexts. This changes `defer` to use `lambda::partial` instead of `std::bind`, which allows it be used in callable-once contexts. Review: https://reviews.apache.org/r/63635/ {noformat} {noformat} commit 0d9ce98e9df97be06144d2e29cf23a9c090a06b3 Author: Dmitry Zhuk <dz...@twopensource.com> Date: Tue Dec 5 10:39:47 2017 -0800 Changed dispatch to use callable once functors. `dispatch` guarantees that functor will be called at most once, and therefore it allows optimizations, such as moves of deferred objects. Review: https://reviews.apache.org/r/63634/ {noformat} > Support moving into defer/dispatch/install handlers. > ---------------------------------------------------- > > Key: MESOS-8301 > URL: https://issues.apache.org/jira/browse/MESOS-8301 > Project: Mesos > Issue Type: Improvement > Components: libprocess > Reporter: Benjamin Mahler > Assignee: Dmitry Zhuk > > Currently, dispatch and defer will take copies of the provided arguments. > Also, a protobuf message handler cannot move the supplied message. We should > support moves for these for efficiency. -- This message was sent by Atlassian JIRA (v6.4.14#64029)