Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid

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]
[choroba]: csh considered harmful
[erix]: no, I'm using bash :)
[marioroy]: :)
[marioroy]: I use the default and happens to be bash
[erix]: heh, I like the "Resolved" (Christiansen is really funny)
Discipulus is makita a reincarnation of grinder?
[erix]: I probably also need to understand TAP a bit better than I do

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (8)
As of 2017-03-23 08:31 GMT
Find Nodes?
    Voting Booth?
    Should Pluto Get Its Planethood Back?

    Results (285 votes). Check out past polls.