Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: Perl text processing

by perlfan (Vicar)
on Jun 09, 2014 at 14:34 UTC ( [id://1089275]=note: print w/replies, xml ) Need Help??


in reply to Perl text processing

From an efficiency point of view, it'd be much more so to encode your 3000 categories into a Trie. After that, run your 3 million entries over it. It then becomes a matter of traversing the trie 3 million times rather than making 3,000,000 x 3,000 compares. Sorry I have no code to give.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (None)
    As of 2024-04-25 00:10 GMT
    Sections?
    Information?
    Find Nodes?
    Leftovers?
      Voting Booth?

      No recent polls found