Use CPython to speed up Python execution

Further thoughts…

Here (URL) someone compares the speed of pure python with numpy and with Cython. It seems that Numpy are x31 as fast, Native Cython is x24 as fast… Noting that Numpy is also running C in the backend, this is reasonable.

I tried a minimal example of using the Monte Carlo method to estimate \PI, which uses numpy.random, and the result is…. disappointing. CPython only makes it slowlier…

real time2 core user time
Python + Numpy2m37s5m10s
Python + Numpy + CPython2m41s5m13s

I may need to build a minimal example to compare the performance with and without CPython for RegEx, the only thing whose speed bothers me.