Perl-Sensitive Sunglasses | |
PerlMonks |
Re^2: Find repeated patterns in stringsby GrandFather (Saint) |
on Aug 27, 2005 at 20:58 UTC ( [id://487190]=note: print w/replies, xml ) | Need Help?? |
The divisors optimization occurred to me after I'd posted. I'd thought about the regex and, as you did, assumed it would be slow. Thank you for the work tlm! Lesson learned: it ain't obvious - benchmark! For the application domain this arose from findCycle_1 (divisors) is likely the best solution. Perl is Huffman encoded by design.
In Section
Cool Uses for Perl
|
|