Skip to content

shard executes f in sequence, not in parallel #473

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

Closed
schlichtanders opened this issue Mar 4, 2024 · 1 comment · Fixed by #481
Closed

shard executes f in sequence, not in parallel #473

schlichtanders opened this issue Mar 4, 2024 · 1 comment · Fixed by #481

Comments

@schlichtanders
Copy link

schlichtanders commented Mar 4, 2024

Just stumbling upon the internals of the shard function because I was looking for an easy way to distribute a function on all workers.

shard_dict[proc] = fetch(thunk)[]

To me this looks like it should go into a separate for loop which directly follows thereafter, so that the different @spawn action can actually run in parallel.

@jpsamaroo
Copy link
Member

Yep, good find!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants