Skip Menu |
Report information
Id: 125974
Status: new
Priority: 0/
Queue: perl6

Owner: Nobody
Requestors: perl6 [at] 6dof.xyz
Cc:
AdminCc:

Severity: (no value)
Tag: (no value)
Platform: (no value)
Patch Status: (no value)
VM: (no value)



To: rakudobug [...] perl.org
From: cdc <perl6 [...] 6dof.xyz>
Subject: [Perf] Closures in regex cost a lot of CPU cycles.
Date: Thu, 3 Sep 2015 14:42:18 +0200
Download (untitled) / with headers
text/plain 505b
How to reproduce: time perl6 -e "say 'abcdef' ~~ /<{('a' ... 'z').list}>+/" 「abcdef」 Current result: real 0m4.455s user 0m4.203s sys 0m0.252s Expected result -- same as with: time perl6 -e "say 'abcdef' ~~ /:my @l = ('a' ... 'z').list; @l+/" 「abcdef」 real 0m0.382s user 0m0.289s sys 0m0.093s Note: this is not a bug, I just wonder if it's a LHF. Note 2: As of my understanding, the issue is not due to the + repeater.


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

For issues related to this RT instance (aka "perlbug"), please contact perlbug-admin at perl.org