Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Register
  • Sign in
  • L linux
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • Deployments
    • Deployments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • Kirill Smelkov
  • linux
  • Repository
You need to sign in or sign up before continuing.
  • linux
  • scripts
  • checkpatch.pl
Find file BlameHistoryPermalink
  • Joe Perches's avatar
    checkpatch: reduce is_maintained_obsolete lookup runtime · cd28b119
    Joe Perches authored Dec 04, 2019
    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/b982566a2b9b4825badce36fdfc3032bd0005151.camel@perches.com
    
    
    Signed-off-by: default avatarJoe Perches <joe@perches.com>
    Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
    Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
    cd28b119
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7