mirror of
https://github.com/labwc/labwc.git
synced 2026-02-05 04:06:33 -05:00
Reduce the overhead of fork/execve/perl startup time by not doing those for every files that are checked. This also makes the check execution complete faster. On similar systems and similar background load, the execution time varies based on how find(1) outputs the (*.[ch]) files it sees on filesystem -- the filenames are not sorted but are written from directories src/ include/ clients/ t/ in that order -- more than 80% of the time goes checking files in src/, and how the 16-file batches from that dir (108 files in src/, 208 total, as of 2026-01) are distributed the checkpatch.pl processes affect mostly to the total run time. |
||
|---|---|---|
| .. | ||
| ci | ||
| helper | ||
| .gitignore | ||
| asan_leak_suppressions | ||
| check | ||
| checkpatch.pl | ||
| find-banned.sh | ||
| README.md | ||
| rip.c | ||
| run-with-asan.sh | ||
| wl_compcheck.py | ||
These scripts are intended to be run from the project top-level directory
like this: scripts/foo.sh
-
scripts/check: wrapper to check all files insrc/andinclude/ -
scripts/checkpatch.pl: Quick hack on the Linux kernel checkpatch.pl to lint C files written according to the labwc coding style. Run like this:./checkpatch.pl --no-tree --terse --strict --file <file>