jenkinsci/jenkins — pull request #669 by lacostej (2013-01-10 11:57:05+00:00)
Title: Util/Iterators: find the first subset of consecutive elements matching a...

... predicate, also when this subset isn't at the start of the original set.

In Pull request #663, the optimized byTimestamp implementation can become more inefficient than a simple filter for certain values of start & end dates, by forcing 2 passes. This new limit implementation would allow a simple pass. I am not committing it directly as I think a better name could be found instead of this overloaded method.

Feedback appreciated.