[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Optimizing performance of buffer markers
From: |
Eli Zaretskii |
Subject: |
Re: Optimizing performance of buffer markers |
Date: |
Sat, 25 Jun 2022 11:44:34 +0300 |
> From: Stefan Monnier <monnier@iro.umontreal.ca>
> Cc: Eli Zaretskii <eliz@gnu.org>, casouri@gmail.com, emacs-devel@gnu.org
> Date: Sat, 25 Jun 2022 04:29:08 -0400
>
> > AFAIK, the most natural data structure to search for data
> > before/after given key is a binary tree. There are more exotic data
> > structures, like skip list, but I do not expect skip lists to be
> > implemented in Emacs C code.
>
> BTW, most markers are actually part of overlays. And Andreas Politz
> implemented an AA-tree based representation of overlays for Emacs (see
> the branch `feature/noverlay`).
>
> So if you have performance problems due to overlays, you might want to
> check the branch, make sure it solves the problem, and see if you can
> get it merged once and for all into `master`.
Landing that branch is indeed a very Good Thing, but AFAIU this
discussion revealed that Org adds quite a few markers of its own when
it parses the buffer, because it wants to track the positions of some
syntactic elements of the buffer.
- Re: Exposing buffer text modifications to Lisp (was: Tree-sitter integration on feature/tree-sitter), (continued)
- Re: Exposing buffer text modifications to Lisp (was: Tree-sitter integration on feature/tree-sitter), Ihor Radchenko, 2022/06/18
- Re: Exposing buffer text modifications to Lisp, Eli Zaretskii, 2022/06/18
- Re: Exposing buffer text modifications to Lisp, Ihor Radchenko, 2022/06/20
- Re: Exposing buffer text modifications to Lisp, Eli Zaretskii, 2022/06/20
- Re: Exposing buffer text modifications to Lisp, Stefan Kangas, 2022/06/20
- Re: Exposing buffer text modifications to Lisp, Ihor Radchenko, 2022/06/20
- Re: Exposing buffer text modifications to Lisp, Ihor Radchenko, 2022/06/21
- Re: Exposing buffer text modifications to Lisp, Eli Zaretskii, 2022/06/21
- Optimizing performance of buffer markers (was: Exposing buffer text modifications to Lisp), Ihor Radchenko, 2022/06/25
- Re: Optimizing performance of buffer markers, Stefan Monnier, 2022/06/25
- Re: Optimizing performance of buffer markers,
Eli Zaretskii <=
- Re: Optimizing performance of buffer markers, Stefan Monnier, 2022/06/25
- Re: Optimizing performance of buffer markers, Eli Zaretskii, 2022/06/25
- Re: Optimizing performance of buffer markers, Stefan Monnier, 2022/06/25
- Re: Optimizing performance of buffer markers, Ihor Radchenko, 2022/06/25
- Re: Optimizing performance of buffer markers, Stefan Monnier, 2022/06/25
- Re: Optimizing performance of buffer markers, Robert Pluim, 2022/06/26
- Re: Exposing buffer text modifications to Lisp, Basil L. Contovounesios, 2022/06/22
- Re: Exposing buffer text modifications to Lisp, Eli Zaretskii, 2022/06/22
- Re: Exposing buffer text modifications to Lisp, Ihor Radchenko, 2022/06/25
- Re: Exposing buffer text modifications to Lisp, Eli Zaretskii, 2022/06/25