make: accelerate tagging process
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest2 patches 0 repliesNew
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | make: parallelize tags generationDocumentation/ Makefile scripts/ +1 more | +148 | 0 replies | |
| 2/2 | make: cache per-directory tags.gitignore Documentation/ Makefile +2 more | +193 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
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