ZTree.com  | ZEN  | About...  

 Index   Back

[ZEP] large text file viewing - line counting rules   [Bug]

By: Ben Kent       
Date: Jun 08,2014 at 06:40
In Response to: [ZEP] large text file viewing - line counting rules (Hartmut Schneider)

> >> Starting with ZtreeWin v2.4.139 navigating large text files is
> very
> >> slow. I have stayed at v2.4.138 for this reason.
> >> Jerry
>
> > I guess it might be related to the line number tracking, as
> navigating
> > big files is now equally slow with and without using the Line mode
> > Antti
>
> Here's a change request how ZTree could avoid this:
>
> a) Outside of Viewer, #ZTLine is href=http://www.ztw3.com/forum/forum_entry.php?id=117722>Zero anyway
> (no counting).
>
> Inside of Viewer:
> b) when Line mode is Off, Viewer does NOT YET need to
> know which line it stands on.
> Only if you press e[X]ecute or [E]dit or Alt-[E]dit,
> Viewer has to count lines once,
> in order to provide a value for the #ZTLine variable  which may be
> used there.

I propose a modification to this rule.
Only count the lines if #ZTLine is on the command line, then the delay will only happen when needed. While the counting is happening some status text could be shown to let the user know what is slowing the operation.

>
> c) If Line mode is switched On, Viewer has to keep track of the Line
> number  (slows it down).
>
> d) If Line mode is switched Off again, return to rule b).
>
> Hartmut

1,604 views      
Thread locked
 

Messages in this Thread

 
96,637 Postings in 12,231 Threads, 350 registered users, 76 users online (0 registered, 76 guests)
Index | Admin contact |   Forum Time: Mar 28, 2024 - 12:38 pm UTC  |  Hits:62,366,583  (18,980 Today )
RSS Feed