Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: Further on buffering huge text files

by Jaap (Curate)
on Mar 09, 2005 at 10:21 UTC ( [id://437839]=note: print w/replies, xml ) Need Help??


in reply to Further on buffering huge text files

Why not leave the line numbers as they were before filtering and simply not display the filtered lines? It would look something like:
1211 dfgsdfsdfg 1212 sdfgdfgsdf 1213 sdfgsdfgsdfg 1273 sdfgsdfgsdfg 1274 sdhgsfdg
The only problem with this approach is when the filter would filter out most (or all) of the lines in the buffer. The display would be rather empty then.

Replies are listed 'Best First'.
Re^2: Further on buffering huge text files
by spurperl (Priest) on Mar 09, 2005 at 11:50 UTC
    You are absolutely right with the "only problem" you present. If you think about it, it's an unacceptable problem. Especially when most of the file is filtered out.
      Then keep reading untill the buffer is filled? The GUI would request say 120 lines starting from line 35465 (or byte/char 235435), you would start reading lines fom that position and keep reading and filtering untill you can return the 120 lines.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (8)
As of 2024-03-28 09:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found