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

Loading projects too slow because of File.isDirectory calls

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      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.

        Attachments

          Activity

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

            People

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

              Dates

              Created:
              Updated:
              Resolved: