Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Synchronisation on multiple futures missing #802

Open
supercooldave opened this issue May 10, 2017 · 0 comments
Open

Synchronisation on multiple futures missing #802

supercooldave opened this issue May 10, 2017 · 0 comments

Comments

@supercooldave
Copy link

Oftentimes we see code like:

for f <- this.futures do
    get(f)
end

to synchronise a bunch of parallel computations.
This can be very expensive, especially if one or more of the futures have not been fulfilled.
A more asynchronous solution would involve building a chain of these futures and a single get. Perhaps there are better solutions. In any case, we need library support for this, appropriately benchmarked.

A version of the required operation is in the Task module. This uses await, so is unlikely to be efficient. (Of course, benchmarking would be required to answer that question.)

@supercooldave supercooldave changed the title Barrier synchronisation missing Synchronisation on multiple futures missing May 10, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant