Skip to content

make: accelerate tagging process

Yury Norov linux-doc linux-kbuild lkml 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2make: parallelize tags generationDocumentation/kbuild/kbuild.rst Makefile scripts/Makefile.tags +1 more+148 -120 replies
2/2make: cache per-directory tags.gitignore Documentation/kbuild/kbuild.rst Makefile +2 more+193 -190 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] make: accelerate tagging process

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
Signature · 1 line
2.53.0