Keep It Simple, Stupid | |
PerlMonks |
Re: Faster and more efficient way to read a file verticallyby Anonymous Monk |
on Nov 04, 2017 at 10:03 UTC ( [id://1202743]=note: print w/replies, xml ) | Need Help?? |
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.
In Section
Seekers of Perl Wisdom
|
|