Profiling parallel tests
Nicholas Clark
nick at ccl4.org
Fri Aug 22 12:58:23 UTC 2008
On Thu, Aug 21, 2008 at 11:16:52PM +0100, Andy Armstrong wrote:
> On 21 Aug 2008, at 22:57, Nicholas Clark wrote:
> > The results of that call to get_all() aren't used. It seems that it
> > could be
> > replaced by a get_any(), (Well, not_finished()) method, that
> > returned true
> > as long as there were any tests still to run, which I assume is a
> > test that
> > can be short-circuited.
>
>
> Correct. But I think it's worth clearing out the structures that
> relate to tests that have completed too - otherwise get_any() still
> has a lot of corpses to step over.
There seems to already be some pruning in _find_next_job():
# Prune any exhausted items.
shift @$seq while @$seq && _is_empty( $seq->[0] );
That's doing something different from what you're suggesting?
Nicholas Clark
More information about the tapx-dev
mailing list