go ahead... be a heretic | |
PerlMonks |
Re: Perl text processingby perlfan (Vicar) |
on Jun 09, 2014 at 14:34 UTC ( [id://1089275]=note: print w/replies, xml ) | Need Help?? |
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.
In Section
Seekers of Perl Wisdom
|
|