Skip Menu |

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

Report information
The Basics
Id: 63684
Status: resolved
Worked: 20 min
Priority: 0/
Queue: Net-OpenID-Consumer

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

Bug Information
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.