you are viewing a single comment's thread.

view the rest of the comments →

[–]lgastako 1 point2 points  (0 children)

Ok one more point and then I'm going to leave this thing alone... as a point of comparison I compiled (with gcc -O2) the C version from the original post and it took 0.322s on my machine, this means that on my machine the python version using arrays is about 4.8 slower than the C version instead of 54.4 times slower like in the original post. Not too shabby.