Skip to content

Conversation

@das7pad
Copy link
Contributor

@das7pad das7pad commented Oct 22, 2025

Clicking on There’s more to see - xMiB and fetching 150KiB more than last time is quite inefficient, both in terms of bandwidth usage and in human time spent waiting to click again and again.

This PR is proposing to double the amount of log bytes fetched per click.

E.g. for a 2MiB file and only the tail fetched so far:

  • before: 150 -> 300 -> 450 -> ... -> 1800 -> 1950 -> 2000
    -> 15650 fetched (7.8x or 11.7MiB wasted) with 14 requests / 13 clicks
  • after: 150 -> 300 -> 600 -> 1200 -> 2000
    -> 4250 fetched (2.2x or 2.3MiB wasted) with 5 requests / 4 clicks
n=0;i=0;v=0;while (n < 2000) { console.log(n); n+=150; v+=Math.min(2000,n); i++ };console.log(i,n,v)
n=0;i=0;v=0;while (n < 2000) { console.log(n); n+=(n||150); v+=Math.min(2000,n); i++ };console.log(i,n,v)

Testing done

Based on #704 for Linux:

stage('2 MiB') {
    node {
        sh "head -c \$(expr 2 \\* 1024 \\* 1024) /dev/urandom | base64 --wrap=1000"
    }
}

(This is generating 2.5MiB of log bytes)

Submitter checklist

  • Make sure you are opening from a topic/feature/bugfix branch (right side) and not your main branch!
  • Ensure that the pull request title represents the desired changelog entry
  • Please describe what you did
  • Link to relevant issues in GitHub or Jira
  • Link to relevant pull requests, esp. upstream and downstream changes
  • Ensure you have provided tests that demonstrate the feature works or the issue is fixed

@das7pad das7pad requested a review from a team as a code owner October 22, 2025 22:45
E.g. for a 2MiB file and only the tail fetched so far:
- before: 150 -> 300 -> 450 -> ... -> 1800 -> 1950 -> 2000
  -> 15650 fetched with 14 requests / 13 clicks
- after:  150 -> 300 -> 600 -> 1200 -> 2000
  ->  4250 fetched with 5 requests / 4 clicks
@timja timja added the enhancement New feature or request label Oct 23, 2025
@timja timja merged commit d101260 into jenkinsci:main Oct 23, 2025
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants