Need to improve throughput - Any thoughts



I have a text file with around 1 million lines and I need to do a search

And replace on over 9000 words. I am currently reading a line and
passing
A hash table against it and any matches it is replacing the word in the
string. It is running real slow. Any thoughts on how to improve it?

Daniel Gladstone (Daniel.Gladstone@xxxxxxxxxx)

***************************************************************************
The information contained in this communication is confidential, is
intended only for the use of the recipient named above, and may be legally
privileged.

If the reader of this message is not the intended recipient, you are
hereby notified that any dissemination, distribution or copying of this
communication is strictly prohibited.

If you have received this communication in error, please resend this
communication to the sender and delete the original message or any copy
of it from your computer system.

Thank You.
****************************************************************************
.



Relevant Pages

  • RE: Tuples
    ... Or am I reading too ... product doctrine and thus protected from disclosure. ... distribution or copying of this communication is strictly prohibited. ...
    (comp.lang.python)
  • Re: Worst Predictions of All Time
    ... not the intended recipient, you are hereby notified that any disclosure, ... The information contained in this communication (including any ... For IBM-MAIN subscribe / signoff / archive access instructions, ... send email to listserv@xxxxxxxxxxx with the message: GET IBM-MAIN INFO ...
    (bit.listserv.ibm-main)
  • Re: Need a good Unix script that..
    ... may I suggest that you take a look at awk for doing this? ... The information contained in this communication (including any ... delivering it to the intended recipient, ... and delete the original message. ...
    (freebsd-questions)
  • Re: ftp hacking.
    ... System Analyst ... If you are not the intended recipient, ... communication in error, please notify the sender immediately and delete ... To join/leave the list, search archives, change list settings, * ...
    (comp.sys.hp.mpe)
  • Re: [Full-Disclosure] visa XSS?
    ... > be a customer DSL was great from them because they knew nothing about ... > bandwidth management and I took a entry levle class with a senior ... > delivering this message to the intended recipient, ... If you have received this communication in error, ...
    (Full-Disclosure)