Skip to content
Browse files

[JENKINS-18723] Fixing performance bottleneck, first step. There were…

… 2 times relative path for the job was asked which was replaced by a single time and saving the result in a var.
  • Loading branch information
ctapobep committed Aug 29, 2013
1 parent d75c350 commit cc259504ae050e705a55613fbc78e38f81b18496
Showing with 2 additions and 2 deletions.
  1. +2 −2 core/src/main/resources/lib/hudson/projectView.jelly
@@ -79,9 +79,9 @@ THE SOFTWARE.
<j:forEach var="v" items="${attrs.views}">
<t:projectViewNested />

<j:forEach var="job" items="${jobs}">
<t:projectViewRow jobBaseUrl="${h.getRelativeLinkTo(job).substring(0, h.getRelativeLinkTo(job).length() - job.shortUrl.length())}"/>
<j:set var="relativeLinkToJob" value="${h.getRelativeLinkTo(job)}"/>
<t:projectViewRow jobBaseUrl="${relativeLinkToJob.substring(0, relativeLinkToJob.length() - job.shortUrl.length())}"/>

0 comments on commit cc25950

Please sign in to comment.
You can’t perform that action at this time.