[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#56682: locked narrowing
From: |
Dmitry Gutov |
Subject: |
bug#56682: locked narrowing |
Date: |
Tue, 29 Nov 2022 22:47:16 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2 |
On 29/11/2022 22:11, Gregory Heytings wrote:
- with Emacs 28, after C-s eman RET, I see ~20 ms, and after C-s aan
zich RET, I see ~3000 (!) ms
Yup, the long delays near EOB are expected, I fixed them in js.el not
too long ago (one in font-lock rules, and anothing by creating
js-json-mode).
So what? We had in that file 20 ms at BOB and 3000 ms at EOB, which
means an average of 1500 ms (in that file). Now we have 100 ms at BOB
and EOB, which means an average of 100 ms (in that file). How can that
be a regression?
But the improvement near EOB in this scenario down from 1500 ms is not
necessarily from the long-lines feature.
Like Eli pointed out, try (setq long-line-threshold nil).
The result will be that the benchmark will report ~30ms both near BOB
and near EOB. So the long-lines-threshold thingy adds a regression here.
Again, not trying to criticize or anything, but a 100ms is usually
considered as something that brings an operation from appearing
"instantaneous" down to "noticeable delay". Since we're trying to make
editing large files easier and snappier, that seems worth fixing.
Not to mention that the user might have other features enabled that can
add a multiplier on top of this delay -- which is apparently the case in
my personal configuration.
- bug#56682: locked narrowing, (continued)
- bug#56682: locked narrowing, Gregory Heytings, 2022/11/29
- bug#56682: locked narrowing, Dmitry Gutov, 2022/11/29
- bug#56682: locked narrowing, Eli Zaretskii, 2022/11/29
- bug#56682: locked narrowing, Dmitry Gutov, 2022/11/29
- bug#56682: locked narrowing, Eli Zaretskii, 2022/11/29
- bug#56682: locked narrowing, Dmitry Gutov, 2022/11/29
- bug#56682: locked narrowing, Gregory Heytings, 2022/11/29
- bug#56682: locked narrowing,
Dmitry Gutov <=
- bug#56682: locked narrowing, Gregory Heytings, 2022/11/29
- bug#56682: locked narrowing, Gregory Heytings, 2022/11/29
- bug#56682: locked narrowing, Dmitry Gutov, 2022/11/29
- bug#56682: locked narrowing, Gregory Heytings, 2022/11/30
- bug#56682: locked narrowing, Eli Zaretskii, 2022/11/29
- bug#56682: locked narrowing, Gregory Heytings, 2022/11/30
- bug#56682: locked narrowing, Eli Zaretskii, 2022/11/30
- bug#56682: locked narrowing, Gregory Heytings, 2022/11/30
- bug#56682: locked narrowing, Eli Zaretskii, 2022/11/30
- bug#56682: locked narrowing, Gregory Heytings, 2022/11/30