I have a python script. Lets say http://domain.com/hello.py, which only prints "Hello, World!".
Is it possible to precompile this Python file?
I get around 300 requests per second and the overhead of compiling is way to high. In Java the server can handle this easily but for calculations Python works much easier.
.pyfiles to.pycon import, meaning it's only done once. What makes you think it's the "overhead of compiling" that's making your app slow?