Skip to content

Conversation

@gjoseph92
Copy link
Collaborator

@gjoseph92 gjoseph92 commented Feb 16, 2023

An experimental approach to getting co-assignment a la #4967 along with queuing. This turns the queue into a SortedSet (surprisingly little performance impact), then instead of always pulling from the front of the queue, each worker pops from some point along the queue corresponding to its index (at position ws_idx * tasks_per_worker).

This doesn't actually work well.

benchmarks: https://observablehq.com/@gjoseph92/snakebench?commits=6bb123e&commits=86001f6&measure=duration&groupby=branch&show=passed&everygroup=true

untitled

  • Tests added / passed
  • Passes pre-commit run --all-files

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant