FAQ
Since you haven't provided any code, it would be difficult. Here are
some thoughts:

* Make sure you're doing a "while(<INFILE>){" instead of "@array =
<INFILE>"
* Try precompiling your regular expressions.
(see qr// in perlop under "Quote and Quote-like Operators")


-----Original Message-----
From: Gladstone Daniel - dglads
Sent: Monday, February 27, 2006 8:50 AM
To: beginners@perl.org
Subject: 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@Acxiom.com)

Search Discussions

Discussion Posts

Previous

Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 2 of 3 | next ›
Discussion Overview
groupbeginners @
categoriesperl
postedFeb 27, '06 at 4:49p
activeFeb 28, '06 at 2:15p
posts3
users3
websiteperl.org

People

Translate

site design / logo © 2022 Grokbase