4 ms·
Statically compiling general Python code to a high-performance standalone executable is currently not possible. But to solve the problem you describe, you can:
by ptx 6y ago
Statically compiling general Python code to a high-performance standalone executable is currently not possible.
But to solve the problem you describe, you can:
1) embed CPython in your app to run the Python code (i.e. link with the libpython DLL), and then
2) modify the most performance-critical parts of the Python code so that they can be compiled with Cython or mypyc (or write them in C using the Python C API).
- pjmlp 6y agoAll workarounds for something not needed to do had the OP started with a language with proper AOT support.