[PATCH 0/2] make: accelerate tagging process
From: Yury Norov
Date: Mon Sep 14 2026 - 20:08:47 EST
The tags generation takes about 5 minutes on my working station, which
is comparable to building the whole localyesconfig.
This series adds support for parallel execution of ctags, and caching of
the intermediate tags. With that, the tagging performance numbers with
time make -j8 ALLSOURCE_ARCHS=all tags
look like:
real user sys
Clean tags build before 4m40.797s 4m14.229s 0m39.341s
Clean tags build after 1m39.203s 9m1.450s 2m7.552s
Single file update 0m7.738s 0m7.042s 0m4.031s
Unchanged sources 0m0.722s 0m0.482s 0m0.304s
The cache is compressed and takes less than 10% of the tags file.
The caching doesn't measurably affect clean tags build performance.
Yury Norov (2):
make: parallelize tags generation
make: cache per-directory tags
.gitignore | 1 +
Documentation/kbuild/kbuild.rst | 48 ++++++
Makefile | 6 +-
scripts/Makefile.tags | 15 ++
scripts/tags.sh | 266 ++++++++++++++++++++++++++++++--
5 files changed, 323 insertions(+), 13 deletions(-)
create mode 100644 scripts/Makefile.tags
--
2.53.0