The stupid question is the question not asked | |
PerlMonks |
Re^2: Faster and more efficient way to read a file verticallyby ForgotPasswordAgain (Priest) |
on Nov 03, 2017 at 20:58 UTC ( [id://1202723]=note: print w/replies, xml ) | Need Help?? |
FWIW, seek was my first thought, too. (Also that I'd prototype in Perl, then write the same thing in C. I might've found my weekend project... :) I can't imagine that allocating memory is going to help (I like when my imagination is challenged, though). I think at least if we can assume the file is in filesystem cache the read will be coming from RAM already anyway.
In Section
Seekers of Perl Wisdom
|
|