+ 1
Parallel programming in python?
I'm fairly new to python and I wrote a few codes which took me a while to run for larg amount of inputs....so I thought maybe I could use multiprocessing or parallel processing to reduce the total runtime. with trial and error I came a cross a few useful modules that I could install with pip and run their examples on my pc...but still I don't know the basics and it'd be awesome if you guys help me find a comprehensible introductory on how to actually do simple parallel processing in loops.
1 Resposta
+ 1
See threading module and its docs.
or this:
https://www.toptal.com/JUMP_LINK__&&__python__&&__JUMP_LINK/beginners-guide-to-concurrency-and-parallelism-in-python