Invert two condition checks to evaluate them in cheapest-to-more-expensive order
Added a python version of the performance tests. It will be good to see if the overhead of python interferes at all with our performance readings. We can try things out with this script and see how things go.
And then again only compute the more expensive piece of data if need be :-)