Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: Re: Combining Files

by lemming (Priest)
on Jan 24, 2001 at 00:02 UTC ( [id://53787]=note: print w/replies, xml ) Need Help??


in reply to Re: Combining Files
in thread Combining Files

Very similar to code I wrote for a like project. I found that if there was a huge amount of data that it would bog the machine down. The way I found around this was to work with sorted data (using the Unix sort command) and then to buffer the input by reading from the first file for many lines, then go to the second file and output all the matching lines and keep reading in the second file until you fill your buffer, go to the first, etc...

Note, I was working with data I knew and I was able to tune the buffering for the machine it ran on.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (3)
As of 2024-04-19 05:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found