in reply to speeding up regex
And perhaps you are doing something stupid. Then you don't need any clever tricks, you just have to get rid of the stupidity.
And who knows, perhaps you don't need a regexp at all. Maybe you can put the 300 keywords into a hash, and extract all the words from the document, looking for a match. But it will depend on what the keywords are whether that is possible.
Also, is there a way of measuring the execution time of perl scripts without letting the script complete its run?No, because if the answer would be 'yes', one could solve the halting problem - which is unsolvable.
Abigail
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: speeding up regex
by dannoura (Pilgrim) on Jul 18, 2003 at 09:50 UTC | |
by BrowserUk (Patriarch) on Jul 18, 2003 at 10:30 UTC | |
by Abigail-II (Bishop) on Jul 18, 2003 at 10:37 UTC | |
by arunp (Initiate) on Jul 18, 2003 at 10:55 UTC | |
by dbwiz (Curate) on Jul 18, 2003 at 15:20 UTC | |
by Abigail-II (Bishop) on Jul 18, 2003 at 11:12 UTC |