Skip to content

Conversation

@davidselassie
Copy link
Contributor

Since the underlying channels::pact::Exchange already can store an FnMut as the hash function, it seems like the exchange operator should be able to support taking one as well. I'm still getting my bearings with Timely and Rust, so if there's a reason for the mismatch, I'd love to learn about why.

FWIW, my use case: for reasons unrelated to Timely, I have a limit on how many workers can gather input from the previous system, so I'd like to round-robin exchange right away with a counter, so additional workers have things to chew on in the early part of the dataflow. I know I could hash the input or generate random numbers currently, but this seemed like it could be supported as well.

Thanks!

@frankmcsherry
Copy link
Member

Seems good; thanks!

@frankmcsherry frankmcsherry merged commit 2cc6bea into TimelyDataflow:master Jan 21, 2022
@davidselassie davidselassie deleted the exchange-fn-mut branch January 22, 2022 00:22
@github-actions github-actions bot mentioned this pull request Oct 29, 2024
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.

2 participants