These are chat archives for evhub/coconut
parallel_map is super convenient to speed up execution of CPU-bound tasks (like calculating hashes). It also gives a significant performance boost for IO-bound tasks (like sending HTTP requests), but not as significant as running the tasks asynchronously would give. It would be great to have something like
concurrent_map that would utilize
asyncio module or even Python 3's
await syntax. For the first implementation, using a thread pool instead of a process pool would probably do the trick well enough.
What do you guys think? Would that be doable or useful?
parallel_mapreplacing processes with threads etc. However, I failed to run the shell. The error was that
_coconut_concurrent_mapwas not found. The
compiler.pycode is a bit hairy, so I couldn't dig deeply into the issue.