-
-
Notifications
You must be signed in to change notification settings - Fork 719
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
Cache is_coroutine_function #4481
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks Ian! 😄
This looks good generally. Had a couple questions on the details
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks Ian! 😄
Looks like there is small naming error on CI. Also made one minor aliasing suggestion
cf0cdf9
to
7a9fba0
Compare
mitigate re-checking the same function many times. Decorate function definition, cache all function definitions. Oops, cache is python 3.9-only Alias duplicate function. Use distributed's version of this util. bad rebase.
982baad
to
893a91f
Compare
Thanks Ian! 😄 |
Thanks for the review @jakirkham! |
Fixes #4469 , fixes #4482, fixes #4483, alternative to #4474
Uses cached version of
is_coroutine_function
in stream handling to mitigate re-checking the same function many times.black distributed
/flake8 distributed