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: Dmitry Gutov
Subject: Re: Speedup of display of long and truncated lines
Date: Sun, 21 Aug 2022 14:22:15 +0300
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.9.1

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.



reply via email to

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