[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Speedup of display of long and truncated lines
From: |
Gregory Heytings |
Subject: |
Re: Speedup of display of long and truncated lines |
Date: |
Sat, 13 Aug 2022 15:52:56 +0000 |
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
Re: Speedup of display of long and truncated lines, Eli Zaretskii, 2022/08/14