Keep It Simple, Stupid | |
PerlMonks |
Re: speeding up a file-based text searchby dragonchild (Archbishop) |
on May 06, 2003 at 17:45 UTC ( [id://255962]=note: print w/replies, xml ) | Need Help?? |
Put the file into a database. MySQL would be perfect for this effort. If you can't, rewrite the effort in C.
Of course, if you want to avoid all those problems, why not post your solution (appropriately scrubbed) and see if we can't find other reasons it's running slow. You know the usual suspects, but I know I miss random stuff after staring at code too long ... ------ Don't go borrowing trouble. For programmers, this means Worry only about what you need to implement. Please remember that I'm crufty and crochety. All opinions are purely mine and all code is untested, unless otherwise specified.
In Section
Seekers of Perl Wisdom
|
|