Parallel – A command-line CPU load balancer written in Rust
1–10 of 65 posts
Re: Parallel – A command-line CPU load balancer written in Rust
#2Re: Parallel – A command-line CPU load balancer written in Rust
#3This looks like a perfect real world complete useful application that a beginner in rust could look at.
[0] https://www.jonathanturner.org/2015/10/lessons-from-first-12...
Re: Parallel – A command-line CPU load balancer written in Rust
#4Re: Parallel – A command-line CPU load balancer written in Rust
#5Why this can be faster than GNU parallel?
Re: Parallel – A command-line CPU load balancer written in Rust
#6Why this can be faster than GNU parallel?
One possible reason is that GNU parallel is a perl script.
A few years ago, debian made GNU parallel provide the "/usr/bin/parallel" executable, instead of moreutils. The maintainer of moreutils had some interesting things to say about that: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=597050#75
Re: Parallel – A command-line CPU load balancer written in Rust
#7Why this can be faster than GNU parallel?
One possible reason is that GNU parallel is a perl script.
To add to this, parallel mentions as much in its man pages (that there is a certain startup cost, and a certain job-startup cost), and offers tips for speeding up the processing of jobs which exit fairly fast. But there's no reason you couldn't also do those things in the Rust version, so it's going to win every time. When dealing with commands which take a while to complete though, the extra overhead of the perl script would probably be negligible.
Re: Parallel – A command-line CPU load balancer written in Rust
#8Re: Parallel – A command-line CPU load balancer written in Rust
#9Earlier quoted context omitted.
One possible reason is that GNU parallel is a perl script.
a version in C that I think was first released before GNU parallel is in "moreutils" https://joeyh.name/code/moreutils/ A few years ago, debian made GNU parallel provide the "/usr/bin/parallel" executable, instead of moreutils. The maintainer of moreutils had some interesting things to say about that: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=597050#75
Only 5k? :D
But, yes, the criticisms are valid. I recommend moreutils.
Re: Parallel – A command-line CPU load balancer written in Rust
#10Earlier quoted context omitted.
One possible reason is that GNU parallel is a perl script.
Err, no. It execs other processes. the runtime overhead of running the interpreter is irrelevant as it provides no overhead over the general runtime of the sub-process.