Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-21078

Loading projects too slow because of File.isDirectory calls

      With lazy loading, Jenkins no longer reads $JENKINS_HOME/jobs/*/builds/*/config.xml during startup. But it still checks File.isDirectory on the containing directories, which makes loadIdOnDisk slow. It should suffice for RunMap.createDirectoryFilter to assume that any file in builds which matches the date pattern for a build directory is in fact a directory. (If it is not, retrieve will return null later, so no harm done.) loadIdOnDisk could also avoid calling dir.list twice (once for build directories, once for shortcuts): call it once and filter appropriately.

          [JENKINS-21078] Loading projects too slow because of File.isDirectory calls

          Jesse Glick created issue -
          Jesse Glick made changes -
          Assignee New: Jesse Glick [ jglick ]
          Jesse Glick made changes -
          Status Original: Open [ 1 ] New: In Progress [ 3 ]
          SCM/JIRA link daemon made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: In Progress [ 3 ] New: Resolved [ 5 ]
          Jesse Glick made changes -
          Labels Original: lazy-loading performance New: lazy-loading lts-candidate performance
          Oliver Gondža made changes -
          Labels Original: lazy-loading lts-candidate performance New: 1.532.2-fixed lazy-loading performance
          R. Tyler Croy made changes -
          Workflow Original: JNJira [ 152940 ] New: JNJira + In-Review [ 194405 ]

            jglick Jesse Glick
            jglick Jesse Glick
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: