Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: selecting columns from a tab-separated-values file

by andal (Friar)
on Jan 22, 2013 at 08:49 UTC ( #1014600=note: print w/ replies, xml ) Need Help??


in reply to selecting columns from a tab-separated-values file

Maybe it makes sense to work with the file directly. When reading it line by line and then splitting lines, your program scans through the data 2 times: first time to find '\n', second time to find '\t'. If you would write program that reads file in blocks of fixed size and then scans them in search for both '\t' and '\n' then you'll be scanning that amount of data only once, which could give speed-up.


Comment on Re: selecting columns from a tab-separated-values file

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (6)
As of 2014-08-23 21:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (178 votes), past polls