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

Optimize TagCloud size calculation

XMLWordPrintable

      On large enough instance, calculating weights for TagCloud can take significant amount of the time (~ 90% of time) needed to render /computer/XXX page.

      Handling GET /hudson/computer/XXX/ : ajp-127.0.0.1-8009-108 Computer/index.jelly
      java.util.ArrayList.size(ArrayList.java:177)
      java.util.AbstractList$Itr.hasNext(AbstractList.java:339)
      hudson.Util.filter(Util.java:103)
      hudson.Util.filter(Util.java:115)
      hudson.matrix.AxisList.subList(AxisList.java:66)
      hudson.matrix.MatrixConfiguration.getAssignedLabel(MatrixConfiguration.java:301)
      hudson.model.Label.getTiedJobCount(Label.java:392)
      hudson.model.Node$1.weight(Node.java:234)
      hudson.model.Node$1.weight(Node.java:232)
      hudson.util.TagCloud.<init>(TagCloud.java:73)
      hudson.model.Node.getLabelCloud(Node.java:232)
      sun.reflect.GeneratedMethodAccessor123002.invoke(Unknown Source)
      

            olivergondza Oliver Gondža
            olivergondza Oliver Gondža
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: