Memory management is a bitch that gets in the way of doing good programming logic when memory isn't a concern. There is a time and a place for both.
Wish I had the video, but some guy mad ea prime # calculator to see how high he could get in 1 second. Did it in C with OOP's overhead. His version wasn't very efficient, but it wasn't snap fast. Python faggots went in and trashed him or whatever with Python runs of it that was like 3 times higher over 1 second. Guy's a mathematician and went to C and absolutely blew the F out of the Python runs. I laughed.
Try assembly instead of chimping out like a cheesenigger.
Yup, compiled machine code is going to be faster. You cracked it. Python isn't fast. Writing it is.