I worked at a place once that had a system that was all bash that would take hours to run. I rewrote it in Ruby and got the run down to about 10 minutes.
This was 2000; I don’t recall anymore how much of that was the runtime and got much was just refactoring and hindsight - god knows how old that jumble of bash scripts were. A lot must have been the interpreter; even just looping is far slower in bash than probably anything else.
Not a comment on your script; just remembering that win.
I worked at a place once that had a system that was all bash that would take hours to run. I rewrote it in Ruby and got the run down to about 10 minutes.
This was 2000; I don’t recall anymore how much of that was the runtime and got much was just refactoring and hindsight - god knows how old that jumble of bash scripts were. A lot must have been the interpreter; even just looping is far slower in bash than probably anything else.
Not a comment on your script; just remembering that win.
99% of the waiting time in my case is either waiting for file copies or waiting on SAP programs to run.
I wish I had low hanging fruit like that to go after.