]> git.ipfire.org Git - thirdparty/coreutils.git/commit
sort: optimize the lookups of the --compress-program
authorBruno Haible <bruno@clisp.org>
Fri, 31 Oct 2025 10:20:41 +0000 (11:20 +0100)
committerPádraig Brady <P@draigBrady.com>
Fri, 31 Oct 2025 13:37:22 +0000 (13:37 +0000)
commitf287a2940c7084aed365916bf1c8ccd8fd3c3e8a
tree33d03c9a5531fee4d7acb19c2546a4b38eb3db1a
parentcb536625524e110d756d59cb52d0c20c0bb082d5
sort: optimize the lookups of the --compress-program

* src/sort.c (get_resolved_compress_program): New function.
(pipe_child): Use it instead of calling find_in_given_path each time.
src/sort.c