Make your parallel NumPy code fast: the secret sauce

Image by the author on Canva

Multiprocessing versus Concurrency in Python

First, a quick primer on some terminology.

In Python, if we want to take full advantage of the processing power of your CPU, you need need to use multiprocessing (typically achieved via the multiprocessing library). This library is therefore well suited for CPU intensive tasks. If we wish to efficiently…

Make your video reading code faster

Photo by Felix Mittermeier on Unsplash

The typical way to read videos in Python

A typical pattern for reading videos in Python is using the OpenCV:

Are there any problems with this approach? It is entirely functional, but there are a couple of limitations:

  • It is not optimised for speed
  • OpenCV is not designed as a media library. This one may surprise you…

Benjamin Lowe

AI Engineer and Scientist

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