Files
jenkins/core
Bennett ZhuandJesse Glick 8813df1869 Add streamLoadedBuilds method to avoid full map copy in getEstimatedDurationCandidates (#26597)
* Add cap for getLoadedBuilds to avoid full copy for large build histories

* add lazy loadedBuilds() stream to replace arbitrary capped getLoadedBuilds() method

* Update core/src/test/java/jenkins/model/lazy/AbstractLazyLoadRunMapTest.java

Co-authored-by: Jesse Glick <jglick@cloudbees.com>

* Update core/src/test/java/jenkins/model/lazy/AbstractLazyLoadRunMapTest.java

Co-authored-by: Jesse Glick <jglick@cloudbees.com>

* reimplement getLoadedBuilds to wrap core instead copying into new TreeMap

* add streamLoadedBuilds() and use lazy loading in getEstimatedDurationCandidates()

---------

Co-authored-by: Jesse Glick <jglick@cloudbees.com>
2026-04-13 07:34:34 -06:00
..