diff options
author | Joe Perches <[email protected]> | 2019-12-04 16:52:09 -0800 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2019-12-04 19:44:13 -0800 |
commit | cd28b119047b9928ddae914dd747f032ab929cc6 (patch) | |
tree | 370538dee17f0b9deec26ccd13a70a01c91b50bc /lib/test_fortify/write_overflow-strcpy.c | |
parent | d439e6a5d78b93a85c0f93ea559548fc109ccc1a (diff) |
checkpatch: reduce is_maintained_obsolete lookup runtime
The is_maintained_obsolete function can be called twice using the same
filename. This function spawns a process using get_maintainer.pl.
Store the status of each filename when spawned and use the stored result
to eliminate the spawning of unnecessary duplicate child processes.
Example:
old:
$ time ./scripts/checkpatch.pl hp100-Move-to-staging.patch > /dev/null
real 0m1.767s
user 0m1.634s
sys 0m0.141s
new:
$ time ./scripts/checkpatch.pl hp100-Move-to-staging.patch > /dev/null
real 0m1.184s
user 0m1.085s
sys 0m0.103s
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Joe Perches <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-strcpy.c')
0 files changed, 0 insertions, 0 deletions