News for hackers. Stuff that matters.
Re:The Bash Hackers Wiki by yesenadam on Saturday February 22, 2020 @01:39AM (#22389757)
Also true of Python, but I almost never hear people say that. Strange.
Re:The Bash Hackers Wiki by saagarjha on Saturday February 22, 2020 @04:26AM (#22390143)
Python's a bit faster than Bash.
Re:The Bash Hackers Wiki by vaingloriole on Saturday February 22, 2020 @10:30AM (#22391464)
For what? Is it faster than (g)awk? How about sed? How about dd? How about any of the thousands of tools in userspace that you wrap in bash and are faster than python at the same task? Use the right tool is being lost in the 'you are too stupid to make a good decision, do it this way' generation.
Re:The Bash Hackers Wiki by saagarjha on Saturday February 22, 2020 @10:36AM (#22391492)
It depends, of course! But usually the issue with shell scripts is that they create many new processes, which has high overhead. In the instances you're spending more time in dd than bash, in Python you're probably inside an in-process memcpy.