I&#x27;ve gotten 400(+)x speedups by going from python to python.<p>Original program was 50min in python, 1 min pypy<p>After figuring out some inefficiencies that were O(Nsquared), it was 3 seconds in python<p>This was timing for a case where N was much larger than my normal cases, where run time had been a couple seconds with the original version and optimization didn&#x27;t really matter.