Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris

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]
Discipulus is managing to update/crack his first garmin navigtor: until now just paper maps

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (8)
As of 2017-09-25 13:59 GMT
Find Nodes?
    Voting Booth?
    During the recent solar eclipse, I:

    Results (280 votes). Check out past polls.