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

Re: Faster and more efficient way to read a file vertically

by Anonymous Monk
on Nov 04, 2017 at 10:03 UTC ( #1202743=note: print w/replies, xml ) Need Help??


in reply to Faster and more efficient way to read a file vertically

If speed is of high priority, one shouldn't overlook the mmap() approach using File::Map. It has its limitations (no piped data) but it allows regular files to be efficiently handled as one big string.

  • Comment on Re: Faster and more efficient way to read a file vertically

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1202743]
help
Chatterbox?
and the fire pops...

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (4)
As of 2018-07-15 23:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    It has been suggested to rename Perl 6 in order to boost its marketing potential. Which name would you prefer?















    Results (327 votes). Check out past polls.

    Notices?