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

Relative links to job are built very slowly

    Details

    • Similar Issues:

      Description

      If a View contains 10 jobs, while building relative links Jenkins would build this view 10 times iterating over all Jenkins jobs. This is an extremely inefficient way of building links.

      Details:

      • projectView.jelly#L84 this one asks Functions to build a relative link.
      • Functions.java#L1008 it obtains all items of the view which builds it and accesses Security to iterate through all the jobs in Jenkins. Note, that this code was added 2 months ago.

      Either there should be a different way of building relative path or a different way for building view items.

        Attachments

          Issue Links

            Activity

            ctapobep Stanislav Bashkyrtsev created issue -
            ctapobep Stanislav Bashkyrtsev made changes -
            Field Original Value New Value
            Labels performance
            ctapobep Stanislav Bashkyrtsev made changes -
            Priority Major [ 3 ] Critical [ 2 ]
            joesephz Joe Zeldin made changes -
            Link This issue is related to JENKINS-18377 [ JENKINS-18377 ]
            ctapobep Stanislav Bashkyrtsev made changes -
            Description If a View contains 10 jobs, while building relative links Jenkins would build this view 10 times iterating over all Jenkins jobs. This is an *extremely* inefficient way of building links.

            *Details*:
            * [projectView.jelly#L84|https://github.com/jenkinsci/jenkins/blob/master/core/src/main/resources/lib/hudson/projectView.jelly#L84] this one asks Functions to build a relative link.
            * [Functions.java#L951|https://github.com/jenkinsci/jenkins/blob/master/core/src/main/java/hudson/Functions.java#L951] it obtains all items of the view which builds it and accesses Security to iterate through all(!) the jobs in Jenkins. Note, that this code was added 2 months ago.

            Either there should be a different way of building relative path or a different way for building view items.
            If a View contains 10 jobs, while building relative links Jenkins would build this view 10 times iterating over all Jenkins jobs. This is an *extremely* inefficient way of building links.

            *Details*:
            * [projectView.jelly#L84|https://github.com/jenkinsci/jenkins/blob/master/core/src/main/resources/lib/hudson/projectView.jelly#L84] this one asks Functions to build a relative link.
            * [Functions.java#L1008|https://github.com/jenkinsci/jenkins/blob/7232798611b66f4a03ad8670c07cb58220f4d866/core/src/main/java/hudson/Functions.java#L1008] it obtains all items of the view which builds it and accesses Security to iterate through all(!) the jobs in Jenkins. Note, that this code was added 2 months ago.

            Either there should be a different way of building relative path or a different way for building view items.
            ctapobep Stanislav Bashkyrtsev made changes -
            Link This issue is related to JENKINS-17715 [ JENKINS-17715 ]
            ctapobep Stanislav Bashkyrtsev made changes -
            Status Open [ 1 ] Resolved [ 5 ]
            Resolution Fixed [ 1 ]
            rtyler R. Tyler Croy made changes -
            Workflow JNJira [ 150071 ] JNJira + In-Review [ 193411 ]

              People

              • Assignee:
                Unassigned
                Reporter:
                ctapobep Stanislav Bashkyrtsev
              • Votes:
                6 Vote for this issue
                Watchers:
                8 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: