-
Notifications
You must be signed in to change notification settings - Fork 19
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
Use partial
rather than custom partial classes
#469
Comments
You mean specifically the class |
@martindurant yes, much of dask-awkward's curried calls to |
Microbenchmark
|
If I make kwargs bigger, I find that the class tokenises faster than partial |
That's fascinating! I'm guessing you didn't run the code as above, because |
The first block was a module called "callme" |
Looking at the internals of dask, it seems that features such as
tokenize
have fast-path logic for partial. If instead dask encounters class instances, it has to invoke a serialiser. We should probably just move topartial
(which will also reduce the sloc).The text was updated successfully, but these errors were encountered: