Keep It Simple, Stupid | |
PerlMonks |
Re: Displaying/buffering huge text filesby ctilmes (Vicar) |
on Feb 23, 2005 at 12:20 UTC ( [id://433658]=note: print w/replies, xml ) | Need Help?? |
Instead of indexing every single line, you could index a fraction of them (say every 10th or every 25th) and just skip a few lines after seeking.
If they want to see line 57, seek to line 50 using your index, and skip 7 lines after reading.
In Section
Seekers of Perl Wisdom
|
|