[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#56682: Fix the long lines font locking related slowdowns
From: |
Ihor Radchenko |
Subject: |
bug#56682: Fix the long lines font locking related slowdowns |
Date: |
Mon, 15 Aug 2022 19:47:42 +0800 |
Gregory Heytings <gregory@heytings.org> writes:
> I'm not sure I correctly understand what you mean, but it seems to me that
> the fact that the Org parser caches its results implies that Org doesn't
> need to access the whole buffer to make "local" decisions. It can use the
> data in cache for everything that is outside of the current narrowing, and
> update the portion of the cache corresponding to the current narrowing.
> IOW, there is no need to maintain separate parser caches for each possible
> narrowing state. Am I misunderstanding something?
Cache existence is not guaranteed.
When cache does not exist, Org must widen. If not, the cache will be
valid only for the current narrowing.
When cache do exist, Org may not need to widen. But that also mean that
widening has happened in the past when the cache was generated.
At the end, Org does need to be able to widen safely. At least in some
cases.
--
Ihor Radchenko,
Org mode contributor,
Learn more about Org mode at https://orgmode.org/.
Support Org development at https://liberapay.com/org-mode,
or support my work at https://liberapay.com/yantar92
- bug#56682: Fix the long lines font locking related slowdowns, (continued)
- bug#56682: Fix the long lines font locking related slowdowns, Ihor Radchenko, 2022/08/14
- bug#56682: Fix the long lines font locking related slowdowns, Stefan Monnier, 2022/08/14
- bug#56682: Fix the long lines font locking related slowdowns, Ihor Radchenko, 2022/08/14
- bug#56682: Fix the long lines font locking related slowdowns, Stefan Monnier, 2022/08/14
- bug#56682: Fix the long lines font locking related slowdowns, Ihor Radchenko, 2022/08/14
- bug#56682: Fix the long lines font locking related slowdowns, Gregory Heytings, 2022/08/15
- bug#56682: Fix the long lines font locking related slowdowns,
Ihor Radchenko <=
- bug#56682: Fix the long lines font locking related slowdowns, Gregory Heytings, 2022/08/16
- bug#56682: Fix the long lines font locking related slowdowns, Ihor Radchenko, 2022/08/16
- bug#56682: Fix the long lines font locking related slowdowns, Gregory Heytings, 2022/08/16
- bug#56682: Fix the long lines font locking related slowdowns, Ihor Radchenko, 2022/08/16
- bug#56682: Fix the long lines font locking related slowdowns, Dmitry Gutov, 2022/08/15
- bug#56682: Fix the long lines font locking related slowdowns, Ihor Radchenko, 2022/08/15
- bug#56682: Fix the long lines font locking related slowdowns, Eli Zaretskii, 2022/08/15
- bug#56682: Fix the long lines font locking related slowdowns, Stefan Monnier, 2022/08/15
- bug#56682: Fix the long lines font locking related slowdowns, Ihor Radchenko, 2022/08/16
- bug#56682: Fix the long lines font locking related slowdowns, Gregory Heytings, 2022/08/16