'How make nuitka compile faster?
I use nuitka
compile my python code, but compile time is very slow, can anyone have good idea to solve this?
Nuitka-Progress:INFO: Doing module dependency considerations for 'codecs':
Nuitka-Progress:INFO: Optimizing module 'abc', 0 more modules to go after that.
Nuitka-Progress:INFO: Doing module dependency considerations for 'abc':
Nuitka:INFO: Completed Python level compilation and optimization.
Nuitka:INFO: Generating source code for C backend compiler.
Nuitka:INFO: Total memory usage before generating C code: 1.16 GB (1245917184 bytes):
Nuitka:INFO: Total memory usage before running scons: 1.16 GB (1249931264 bytes):
Nuitka:INFO: Running data composer tool for optimal constant value handling.
Nuitka:INFO: Running C compilation via Scons.
Nuitka-Scons:INFO: Backend C compiler: gcc (gcc).
Nuitka-Scons:INFO: Backend linking program (no progress information available).
Solution 1:[1]
It's nearly impossible, you can try puttin --standalone
instead of --onefile
option to disable onefile stuffing up, which takes some extra time. But then you end up with a folder, whatever you do with it.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | Great Owl |