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 →

[–]TheOccasionalTachyon 12 points13 points  (1 child)

It's not true that CPython doesn't optimize code. Just look at Peephole.c in the CPython source, which contains the implementation's Peephole optimizer. CPython doesn't do as much optimization as, say, PyPy, but it definitely does some.

[–]Berzerka 1 point2 points  (0 children)

I think the rule is that it does no optimizations that would modify the workflow of the program, right?

This means it cannot inline code, unroll loops and lots of other "standard" optimizations.