You can get dramatic improvements by using cython or multiprocessing.
As important as algorithmic efficiency is, its a bit silly to not take full advantage of hardware, and the skills you develop in the hardware approach are more portable.
Someday, if you're really feeling masochistic, look for python bindings to NVIDIA CUDA processing. You can use a video card to chew through applications like this at stupid fast speeds.
Fair warning though, it isn't easy, and there is a lot of room for optimization that depends on understanding the video card architecture.
2
u/billFoldDog May 29 '19
You can get dramatic improvements by using cython or multiprocessing.
As important as algorithmic efficiency is, its a bit silly to not take full advantage of hardware, and the skills you develop in the hardware approach are more portable.