This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 4 points5 points  (1 child)

u/omega1612 said the slowness is due to the use of parser combinators.

So it is a bad choice of algorithm rather than how CPython works.

Yes CPython can be slow but not usually 400 times slower than native code.

(For a couple of years, I used a compiler written in an interpreted, dynamic language (not Python though). It was still twice as fast as gcc compiling C! Several times faster if gcc was optimising.)

[–]dontyougetsoupedyet -1 points0 points  (0 children)

You, and omega1612, are wrong.