-
Notifications
You must be signed in to change notification settings - Fork 24
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
Allow slightly unbalanced consumption in tee #56
Labels
enhancement
New feature or request
Comments
A PR would be great, but I would like to see a couple constraints:
By default, this would still cause consumption to be limited by the slowest iterator, but no longer dependent on the first iterator specifically. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The implementation of aioitertools.itertools.tee currently has the caveat "all iterators are dependent on the first iterator." This caveat can cause periodic stalls in my pipeline where the consumers all consume at roughly the same speed, with small imbalances.
A small refactor of
tee
could remove this limitation if the producer was a separate scheduled task (instead of the first consumer). Would you be open to a pull request for a change along these lines?The text was updated successfully, but these errors were encountered: