This queue is for tickets about the Net-OpenID-Consumer CPAN distribution.

Report information
The Basics
Id:
63684
Status:
resolved
Worked:
20 minutes
Users:
ROBN: 20 minutes
Priority:
Low/Low

People
Owner:
ROBN [...] cpan.org
Requestors:
cpan [...] desert-island.me.uk
Cc:
AdminCc:

BugTracker
Severity:
Important
Broken in:
1.030099_003
Fixed in:
(no value)



Subject: Net::OpenID::Consumer uses $& which makes ALL regexes slow
Using $& makes all use of Regexes in a Perl program slow, if I change the ejs sub to this: sub ejs { my $a = $_[0]; $a =~ s/([\"\'\\])/\1/g; # $a =~ s/[\"\'\\]/\\$&/g; $a =~ s/\r?\n/\\n/gs; $a =~ s/\r//; return $a; } Then my program takes 19 seconds instead of the previous 120 seconds.
Thanks for the report. This has been fixed in Net-OpenID-Common 1.030099_002 which will appear on CPAN shortly. Cheers, Rob.


This service runs on Request Tracker, is sponsored by The Perl Foundation, and maintained by Best Practical Solutions.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.