Kristoffer Balintona <krisbalint...@gmail.com> writes:

> Is there a necessity for org-element’s cache to be sparse? Is it mostly
> to avoid having to parse entire buffers (or at least large chunks of
> them) when they change? When I first heard about org’s caching, I had
> the (extremely) naive question of what technical reasons there are to
> not just store entire parse trees in a cache, even an on-disk one.

Yes, it is to avoid having to parse the entire buffer.
Full re-parsing on every change is simply too slow. Not just for Org,
but for anything. tree-sitter works the same.

-- 
Ihor Radchenko // yantar92,
Org mode maintainer,
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>

Reply via email to