Somewhere I heard that in Lua you can "disable unused features" for its "quickening", maybe this will help you stay on Lua and not to surrender to the spiral choking the Python
Lazaro answered on March 23rd 20 at 18:46
Lua when using a special virtual machine with LuaJIT
but faster in terms of compilation
You are doing something wrong, if you critically compile time.
Compilation conceived as a one-time or very rare process
estel_Fadel answered on March 23rd 20 at 18:48
Faster than LLVM, it is the whole infrastructure, not only the compiler (there is even a programming language binding is not), heavy to embed in their software but the result will be the most productive.
Someone will remember java and its bytecode, the same option, then here for a heap .net virtual machine, only they are not as productive as above indicated.
python is the slowest virtual machine (though there are solutions on its acceleration) but the coolest support community and libraries. But to use it as embedded - difficult, especially if important protection from the exit from the sandbox.