Because this is a guide on using multithreading and multiprocessing, not a demonstration of how to solve that particular problem using the fastest possible way. I didn’t try using map() but I doubt it’s going to beat out multithreading for all I/O bound tasks.

AI researcher, avid reader, fantasy and Sci-Fi geek, and fan of the Oxford comma. www.linkedin.com/in/t-rajapakse/

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store