Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re^3: compare two text file line by line, how to optimise

by GrandFather (Saint)
on Mar 03, 2016 at 06:44 UTC ( [id://1156714]=note: print w/replies, xml ) Need Help??


in reply to Re^2: compare two text file line by line, how to optimise
in thread compare two text file line by line, how to optimise

How long did the test code as written take to run on your computer?

From the information you have given us so far it looks like the only answer is to get a modern computer with sufficient memory to allow using the memory to make the task faster. Many ways of making algorithms faster involve using more memory (which is fast) to avoid having to do as much disk I/O (which is slow). If your computer doesn't have enough memory then there may be no way to speed up the processing.

That said, if we knew why you are trying to do this search we may be able to suggest a better solution.

Premature optimization is the root of all job security
  • Comment on Re^3: compare two text file line by line, how to optimise

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1156714]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (4)
As of 2024-04-24 02:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found