emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Speedup of display of long and truncated lines


From: Eli Zaretskii
Subject: Re: Speedup of display of long and truncated lines
Date: Fri, 19 Aug 2022 09:49:42 +0300

> Date: Sat, 13 Aug 2022 15:52:56 +0000
> From: Gregory Heytings <gregory@heytings.org>
> cc: emacs-devel@gnu.org
> 
> 
> >>> I didn't yet look at C-v/M-v, mainly because I don't have examples of 
> >>> files with long lines that have enough long lines to justify movement 
> >>> by window-full.  (I could, of course, produce such files myself, but 
> >>> the question is: do such files exist in Real Life, enough to make the 
> >>> scrolling commands important in these cases?  Examples of such files, 
> >>> if they exist, are welcome.)
> >>
> >> Yes, such files exist in Real Life.  An example are database dumps, in 
> >> which you can have hundreds of very long lines.
> >
> > Thanks, I'd appreciate any pointers to where I could download examples 
> > of such files.
> >
> 
> I cannot share such an example myself alas, the real-life databases I have 
> access to contain business-sensitive data.  But you can easily create a 
> similar file with the following script.  Its two parameters are the number 
> of tables in the database and the number of elements in each table.  100 
> and 10000 are a good starting point (for what is still a small database).
> 
> #!/bin/bash
> for i in $(seq 1 $1)
> do
>    echo -n "INSERT INTO TABLE_$i VALUES "
>    for j in $(seq 1 $2)
>    do
>      echo -n "(10,'100','QWERTY','Foo Bar Baz',50,4852,$j)"
>      (($j == $2)) && echo -n ';' || echo -n ','
>    done
>    echo
> done

Which major mode is used for visiting such files?



reply via email to

[Prev in Thread] Current Thread [Next in Thread]