Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Re: Further on buffering huge text filesby halley (Prior) |
on Mar 09, 2005 at 17:07 UTC ( [id://437962]=note: print w/replies, xml ) | Need Help?? |
This looks to be exactly the same kind of thing that emacs calls "selective display." In that editor mode, you can hide any image that is indented more than N spaces. Groups of one or more hidden lines appear in the editor as a ... mark appended to the previous visible line. Your cursor moves right over the elipses, you can select everything including an elipses, you can delete or copy chunks that include elipses, etc.
The principle can be extended to any sort of do-or-don't-show filter, of course.
Think of your index as being a hash of weak references to strings, if you know what that means. If the memory is tight, don't keep the strings around, but if they're needed again, then don't hesitate to reconstruct them. --
In Section
Seekers of Perl Wisdom
|
|