Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re^5: CPAN Module to determing overlap of 2 lists?

by LanX (Saint)
on Aug 13, 2020 at 14:15 UTC ( [id://11120677]=note: print w/replies, xml ) Need Help??


in reply to Re^4: CPAN Module to determing overlap of 2 lists?
in thread CPAN Module to determing overlap of 2 lists?

> Currently I feel the regex solution is interesting, but still not my first choice. I'll dig deeper if I start profiling.

For completeness.

Another approach would be combining a binary search with string equality eq if your priorities tend towards performance.

Of course you could change to a division factor other than 0.5 depending on heuristics.

Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery

  • Comment on Re^5: CPAN Module to determing overlap of 2 lists?

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11120677]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (7)
As of 2024-04-19 20:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found