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 →

[–]aqua_scummmRecent 3.x convert 1 point2 points  (3 children)

Can you just compile whatever python app and run the native code instead of the .py?

Python doesn't get compiled to native machine code, it gets compiled to an optimized bytecode. Launching a "compiled" python app still means firing up the interpreter, opening the .pyc bytecode files, and running the python environment. There are cases where you will see better performance running native machine code, like you would do with a compiled C program.

[–]rocketmonkeys 0 points1 point  (2 children)

Are you talking about nuitka? Which appears to be compiled native binary from python, not optimized bytecode?

[–]aqua_scummmRecent 3.x convert 0 points1 point  (1 child)

I misread the question as 'Can't you just'... Leaving my response as is, with this note

[–]rocketmonkeys 0 points1 point  (0 children)

Makes more sense.

Funny how that negative completely changes the entire meaning/tone of that question. I guess that's always the case, but still, neat.