Skip Menu |

This queue is for tickets about the TAP-Harness-JUnit CPAN distribution.

Report information
The Basics
Id: 53730
Status: resolved
Priority: 0/
Queue: TAP-Harness-JUnit

People
Owner: JLAVALLEE [...] cpan.org
Requestors: KGOESS [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 0.32
Fixed in: 0.33



Subject: test output takes forever on lots of unnamed tests
If you have like a thousand unnamed tests, TAP::Harness::JUnit takes ten minutes to produce the output. For each candidate uniquifier it does a linear scan of all the other test names to see if there's a collision, then increments the uniquifier and does the linear scan again, etc.. The attached patch (with test cases) does a hash lookup of previously seen uniquifiers rather than the continuous linear scans.
Subject: TAP-Harness-JUnit-lotsofuniquenames.patch

Message body is not shown because it is too large.

From: jeff [...] zeroclue.com
I've committed a fix for this on my fork on github: http://github.com/jlavallee/tap-harness-junit On Fri Jan 15 16:31:42 2010, KGOESS wrote: Show quoted text
> If you have like a thousand unnamed tests, TAP::Harness::JUnit takes ten > minutes to produce the output. For each candidate uniquifier it does a > linear scan of all the other test names to see if there's a collision, > then increments the uniquifier and does the linear scan again, etc.. > The attached patch (with test cases) does a hash lookup of previously > seen uniquifiers rather than the continuous linear scans. >