First cut at adding some parallelism in pyfive#209
Conversation
|
My two main concerns with this implementation are:
|
It does seem to be the only way to safely exploit asyncio in the context of fsspec, but yes, there is a lot to investigate. I've not actually tested this in anger yet. |
Yes, I agree. I started out by wanting to do this. I am not quite sure how I ended up with this. I'm minded to persevere with it until we have sorted the performance issues out, then refactor it. |
|
The other thing where we may get benefit is threading around the uncompress, which should also be embarassingly parallel, and certainly not optimal for async. You'll note that at the moment that's still serial ... |
Absolutely, just as a remainder for my future self, this might good to implement using two thread pools or async threads that communicate via some queue. |
Description
This pull request addresses issue: #208 by introducing a new mixin class for parallel access to chunks.
Checklist