mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-11 11:06:25 +00:00
[JENKINS-20892] Partial fix of poor scalability in /builds and related displays.
This commit is contained in:
1 parent
c81136ec1b
commit
c5e23739fa
10 files changed
+165
-52
No files matched your search
@@ -150,6 +150,7 @@ import org.kohsuke.stapler.jelly.InternationalizedStringExpression.RawHtmlArgume
|
||||
|
||||
import com.google.common.base.Predicate;
|
||||
import com.google.common.base.Predicates;
|
||||
import hudson.util.RunList;
|
||||
import java.util.concurrent.atomic.AtomicLong;
|
||||
import org.kohsuke.accmod.Restricted;
|
||||
import org.kohsuke.accmod.restrictions.NoExternalUse;
|
||||
@@ -1431,7 +1432,8 @@ public class Functions {
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns a sub-list if the given list is bigger than the specified 'maxSize'
|
||||
* Returns a sub-list if the given list is bigger than the specified {@code maxSize}.
|
||||
* <strong>Warning:</strong> do not call this with a {@link RunList}, or you will break lazy loading!
|
||||
*/
|
||||
public static <T> List<T> subList(List<T> base, int maxSize) {
|
||||
if(maxSize<base.size())
|
||||
|
||||
Reference in new issue
Block a user