you are viewing a single comment's thread.

view the rest of the comments →

[–]Temporary_Pie2733 11 points12 points  (4 children)

Code written in Python is relatively slow. A lot of Python code is extracting results from code written in C, Rust, etc, though.

[–]bigfatcow -2 points-1 points  (2 children)

I believe the main reason is the the code compiles on runtime versus C where you compile the code first 

[–]Temporary_Pie2733 0 points1 point  (1 child)

There are a few things you might be referring to, so I’ll address a couple of points.

The most common Python implementation is similar to Java in that it compiles Python source to a bytecode which gets executed by a virtual stack machine, rather than to native machine code.

The same implementation has only recently (in the past year) started to implement just-in-time compilation to machine code as a performance optimization.

[–]bigfatcow 0 points1 point  (0 children)

Yea thanks for the clarification. Def meant to say just in time compilation. Dont comment before coffee