cycomanic parent
Using a cython binding compared to the Ctypes one gives a speedup of a factor of 3. That's still not very fast, now putting the whole thing into a cython program. Like so:
Actually yields 597 compared to the pure c program yielding 838.