3 ms·
Yes GNU spends a lot of time improving performance. A couple of examples from the most recent release, which you might think were too simple to optimize signifi
by pixelbeat 11y ago
Yes GNU spends a lot of time improving performance. A couple of examples from the most recent release, which you might think were too simple to optimize significantly:
The yes command (which is generally useful for generating repetitive text):
$ yes-old | pv > /dev/null ^C
... 55.8MiB/s ...
$ yes-new | pv > /dev/null ^C
... 3.44GiB/s ...
Details on that fairly simple change are at http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=35217221 http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h...
Also we more than doubled the speed of wc -l (by avoiding function call overhead):
$ yes | pv | wc-old -l ^C
... 230MiB/s ...
$ yes | pv | wc-new -l ^C
... 558MiB/s ...
Also we now generate an infinite stream of integers more efficiently too:
$ seq-old inf | pv > /dev/null ^C
... 13.3MiB/s ...
$ seq-new inf | pv > /dev/null ^C
... 497MiB/s ...
- justinsaccount 11y agoNice!