Monday, October 17, 2022
Show HN: Xzgrep is twice as fast with dash versus bash https://ift.tt/0Yf1SUi
Show HN: Xzgrep is twice as fast with dash versus bash In the CentOS world, a shell script written by "Charles Levert" has been extended as the compressed grep for (gzip/bzip2/xz) as /bin/(zgrep/bzgrep/xzgrep); variants of this script are bundled in their respective packages. The dash shell, available in EPEL for CentOS, appears to specifically speed up xzgrep considerably when altered from #!/bin/sh to #!/bin/dash. In my testing on a 32-bit platform under xargs, a search of 14k files of 20M total size runs in half the time. Do others see this performance increase? Is this another tangible benefit for Debian/Ubuntu moving the system shell from bash to their Almquist shell derivative? October 17, 2022 at 11:42PM
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment