Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: cut vs split (suggestions)

by jZed (Prior)
on Apr 17, 2005 at 05:47 UTC ( #448595=note: print w/ replies, xml ) Need Help??


in reply to cut vs split (suggestions)

Well, there's always that middle ground between C and perl - XS modules. Cut probably still beats it, but Text::CSV_XS appears to be faster than split for files of that size. And has the added advantage of supporting embedded newlines and embedded delimiters.

For a 1 million row table of 100 columns, sum the second column:

             s/iter        Split Text::CSV_XS
Split          49.8           --          -8%
Text::CSV_XS   45.9           8%           --


Comment on Re: cut vs split (suggestions)

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (11)
As of 2015-07-06 17:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (80 votes), past polls