The basket should be set up to download and install pastries in parallel. I imagine some kind of toDownload and toInstall queues and a bunch of coroutines/tasks that download/install pastries using that queue.
This does not necessarily have to replace the singlethreaded code, but should rather be an option (such as make -j4).
The python package asyncio looks quite nice.
The
basketshould be set up to download and install pastries in parallel. I imagine some kind oftoDownloadandtoInstallqueues and a bunch of coroutines/tasks that download/install pastries using that queue.This does not necessarily have to replace the singlethreaded code, but should rather be an option (such as
make -j4).The python package
asynciolooks quite nice.