3 ms·
> The result should be that the same Python code should run much faster in the form created by Nuitka How do you figure? Python's slowness is not due to it's l
by falcolas 11y ago
> The result should be that the same Python code should run much faster in the form created by Nuitka
How do you figure? Python's slowness is not due to it's lack of compilation, it's due to its dynamic nature and all of the runtime lookups.
Past efforts to compile python down to bytecode have not resulted in speedups. Unladen Swallow is one such failed example. PyPy gets around this by analyzing the actual running code and is only able to speed up a subset of all of Python.
- Lofkin 11y agoNuitka is already faster than Cpython and it seems a majority of the speed work has yet to be done.
- scarygliders 11y agoI think you misunderstand what Nuitka is doing... It is not compiling down to Python bytecode. It is compiling to an operational-equivalent C++ source code. Then it is compiling that C++ code to executable object code.