Perl: the Markov chain saw | |
PerlMonks |
Re: I need speedby twerq (Deacon) |
on Jun 21, 2002 at 17:51 UTC ( [id://176336]=note: print w/replies, xml ) | Need Help?? |
Using DB_File would definately be faster for index lookups, provided you used the btree interface.
By using the filename as the key, and the path as the value, you can quickly search for the location of your file. One problem you may run into, though -- is that many files (under different paths) share identical names. See the section "Handling Duplicate Keys" in man DB_File. --twerq
In Section
Seekers of Perl Wisdom
|
|