[
https://issues.apache.org/jira/browse/MESOS-645?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13751440#comment-13751440
]
Jie Yu edited comment on MESOS-645 at 8/27/13 4:59 PM:
-------------------------------------------------------
Ran a simple micro-benchmark shown as follows:
for (int i = 0; i < 100000; i++) {
Promise<bool> promise;
if (random() % 2 == 0) {
promise.set(true);
} else {
promise.fail("None");
}
promise.future().await();
}
Results:
Before: 8603 ms
After: 376 ms
was (Author: jieyu):
Ran a simple micro-benchmark shown as follows:
for (int i = 0; i < 100000; i++) {
Promise<bool> promise;
if (random() % 2 == 0) {
promise.set(true);
} else {
promise.fail("None");
}
promise.future().await();
}
Results:
Before: 8603 ms
After: 376 ms
> Improve the performance of process::Latch.
> ------------------------------------------
>
> Key: MESOS-645
> URL: https://issues.apache.org/jira/browse/MESOS-645
> Project: Mesos
> Issue Type: Sub-task
> Reporter: Jie Yu
> Assignee: Jie Yu
> Priority: Minor
> Attachments: Screen Shot 2013-08-27 at 9.51.10 AM.png, Screen Shot
> 2013-08-27 at 9.51.21 AM.png
>
>
> Latch is performance critical as it is used in each Future instance. The
> current implementation of Latch leverages a process which is not efficient
> (e.g. user level switches, process creation/termination cost, etc.).
> Plan to re-implement Latch using Gate.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira