From: Dmitry Gutov <dgutov@yandex.ru>
To: Gregory Heytings <gregory@heytings.org>, Eli Zaretskii <eliz@gnu.org>
Cc: emacs-devel@gnu.org
Subject: Re: Speedup of display of long and truncated lines
Date: Sun, 21 Aug 2022 14:22:15 +0300 [thread overview]
Message-ID: <cd331c3d-ab95-3f86-9a96-b194a6e9d507@yandex.ru> (raw)
In-Reply-To: <37dd2827f51f1d25e9ce@heytings.org>
On 20.08.2022 19:22, Gregory Heytings wrote:
>
>>> #!/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?
>>
>
> sql-mode
FWIW, my brief testing seems to show sql-mode's font-lock has similar
performance to js-json-mode. Maybe like 1.5x slower in syntax-ppss (due
to syntax-propertize-function being present), but that's it.
Tested with font-lock without narrowing, of course.
next prev parent reply other threads:[~2022-08-21 11:22 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-08-13 14:10 Speedup of display of long and truncated lines Eli Zaretskii
2022-08-13 14:28 ` Stefan Monnier
2022-08-13 15:10 ` Eli Zaretskii
2022-08-13 15:34 ` Gregory Heytings
2022-08-13 15:36 ` Eli Zaretskii
2022-08-13 15:52 ` Gregory Heytings
2022-08-19 6:49 ` Eli Zaretskii
2022-08-20 16:22 ` Gregory Heytings
2022-08-21 11:22 ` Dmitry Gutov [this message]
2022-10-11 10:38 ` Eli Zaretskii
2022-08-14 13:42 ` Eli Zaretskii
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=cd331c3d-ab95-3f86-9a96-b194a6e9d507@yandex.ru \
--to=dgutov@yandex.ru \
--cc=eliz@gnu.org \
--cc=emacs-devel@gnu.org \
--cc=gregory@heytings.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).