[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#56682: Fix the long lines font locking related slowdowns
From: |
Stefan Monnier |
Subject: |
bug#56682: Fix the long lines font locking related slowdowns |
Date: |
Sun, 31 Jul 2022 06:41:42 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) |
> That's not possible: the narrowing is (really) locked (with un uninterned
> symbol), it cannot be undone. What would be possible would be to add an
> optional "unlock" argument to widen. But somehow I don't think that would
> be TRT, as mode authors who now do a (widen) would simply take the habit to
> write (widen t) instead, and the same problems would surface again.
Emacs is not in the business of preventing people from shooting
themselves in the foot. If we need this narrowing to be enforced
because Emacs would otherwise crash, then it's OK, but if not, then we
*should* provide a way to undo it.
> BTW, my tests show that syntax-ppss can be rather slow, when the file is
> large enough (say 1 GB).
No doubt. But it's no slower with long lines than with short lines.
[ Note that it calls `syntax-propertize` internally, which would need
to be considered separately since `syntax-propertize` does work
line-by-line, and should hence obey the narrowing. ]
Stefan
- bug#56682: Fix the long lines font locking related slowdowns, (continued)
- bug#56682: Fix the long lines font locking related slowdowns, Eli Zaretskii, 2022/07/30
- bug#56682: Fix the long lines font locking related slowdowns, Gregory Heytings, 2022/07/30
- bug#56682: Fix the long lines font locking related slowdowns, Gregory Heytings, 2022/07/30
- bug#56682: Fix the long lines font locking related slowdowns, Stefan Monnier, 2022/07/31
- bug#56682: Fix the long lines font locking related slowdowns, Eli Zaretskii, 2022/07/31
- bug#56682: Fix the long lines font locking related slowdowns, Gregory Heytings, 2022/07/31
- bug#56682: Fix the long lines font locking related slowdowns,
Stefan Monnier <=
- bug#56682: Fix the long lines font locking related slowdowns, Gregory Heytings, 2022/07/31
- bug#56682: Fix the long lines font locking related slowdowns, Stefan Monnier, 2022/07/31
- bug#56682: Fix the long lines font locking related slowdowns, Gregory Heytings, 2022/07/31
- bug#56682: Fix the long lines font locking related slowdowns, Stefan Monnier, 2022/07/31
- bug#56682: Fix the long lines font locking related slowdowns, Gregory Heytings, 2022/07/31
- bug#56682: Fix the long lines font locking related slowdowns, Dmitry Gutov, 2022/07/31
- bug#56682: Fix the long lines font locking related slowdowns, Gregory Heytings, 2022/07/31
- bug#56682: Fix the long lines font locking related slowdowns, Dmitry Gutov, 2022/07/31
- bug#56682: Fix the long lines font locking related slowdowns, Gregory Heytings, 2022/07/31
- bug#56682: Fix the long lines font locking related slowdowns, Gregory Heytings, 2022/07/31