Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer

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

by andal (Hermit)
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?

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

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (7)
As of 2016-09-26 09:53 GMT
Find Nodes?
    Voting Booth?
    Extraterrestrials haven't visited the Earth yet because:

    Results (478 votes). Check out past polls.