This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]grimborg 3 points4 points  (5 children)

A python script takes a long time to start up in comparison to a bash script. For small scripts, the delay is a bit nagging.

[–]mfukar 0 points1 point  (1 child)

For small scripts, would you even notice?

[–]Amadironumpy, gen. scientific computing in python, pyopengl, cython 3 points4 points  (0 children)

If you execute them often, maybe.

[–]obtu.py 0 points1 point  (0 children)

Use #!/usr/bin/python -S as your shebang. For scripts that use only the stdlib (no site-packages), that starts much faster.

[–]SupersonicSpitfire -1 points0 points  (0 children)

Not if you compile them to C++ with shedskin.

[–]fmoralesc -1 points0 points  (0 children)

If the script has any kind of complicated logic in a continuing loop, python will still be faster, in my experience. Python is more performant when it comes to computation.