Optimizing code using PIL
- by freakazo
Firstly sorry for the long piece of code pasted below.
This is my first time actually having to worry about performance of an application so I haven't really ever worried about performance.
This piece of code pretty much searches for an image inside another image, it takes 30 seconds to run on my computer, converting the images to greyscale and…