]> git.ipfire.org Git - thirdparty/man-pages.git/commit
grepc: grepc_find_files: Get a reduced list of files once
authorAlejandro Colomar <alx.manpages@gmail.com>
Tue, 10 May 2022 16:44:58 +0000 (18:44 +0200)
committerAlejandro Colomar <alx@kernel.org>
Wed, 29 Oct 2025 20:28:54 +0000 (21:28 +0100)
commit2657d2f53ebd292370b5e9ed30d875cf77785d74
tree35426c376da8cf411985fe5246310edd4944e90e
parent884280bbef66784756d05ee27c76def0590fe610
grepc: grepc_find_files: Get a reduced list of files once

Instead of running find and grep -l for every function, store the
result in a temporary file for reuse in all functions.

This is a considerable speedup, between 3x and 10x in some tests
within the Linux kernel source code.

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
bin/grepc