in reply to Displaying/buffering huge text files
Anyway, if storing all the offsets in an index makes the index too large, why not store the offset of every 100th line? That makes your index 99% smaller. You do have to read up to 100 lines if your user jumps to a certain line, but unless you're writing a line editor, you want to read multiple lines on jumps anyway.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Displaying/buffering huge text files
by BrowserUk (Patriarch) on Dec 23, 2011 at 03:56 UTC | |
by JavaFan (Canon) on Dec 23, 2011 at 10:32 UTC |