Hacker News new | ask | show | jobs
by a2800276 1195 days ago
Wait what: `parallel` is a Perl script!? [1]

I would have thought it's black magic with assembler optimisations for MIPS and special considerations for HP-UX...

This is such a lovely and interesting writeup, it's wonderful that people take their time to share so generously!

[1] : an 11k loc petal script, you can read along here: https://github.com/gitGNU/gnu_parallel/blob/master/src/paral...

1 comments

assembly optimizations for starting processes?
Maybe for reading the input, splitting it, and assembling the possibly-very-long argument lists passed to the processes.
Those things are all very fast compared to starting a process
Command lines can be very long, so you can potentially read a million lines between executing processes.