[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Exposing buffer text modifications to Lisp
From: |
Eli Zaretskii |
Subject: |
Re: Exposing buffer text modifications to Lisp |
Date: |
Sat, 25 Jun 2022 08:46:06 +0300 |
> From: Ihor Radchenko <yantar92@gmail.com>
> Cc: "Basil L. Contovounesios" <contovob@tcd.ie>, casouri@gmail.com,
> emacs-devel@gnu.org
> Date: Sat, 25 Jun 2022 12:54:36 +0800
>
> Eli Zaretskii <eliz@gnu.org> writes:
>
> > Btw, do we have recipes for measuring the effects of changing the data
> > structures used for markers? If we do have such recipes, did someone
> > try to compare the performance in plain-ASCII Org buffers (where the
> > conversion is trivial and shouldn't even access the markers) and
> > non-ASCII buffers? Inserting a single non-ASCII character somewhere
> > in an otherwise plain-ASCII buffer should show the effect of many
> > markers on the likes of CHAR_TO_BYTE.
>
> AFAIK, buf_bytepos_to_charpos should take no time on plain-ASCII buffers
Yes, that's what I said above.
> The recipe of measuring the effects is in
> https://list.orgmode.org/orgmode/scedec$2g0$1@ciao.gmane.io/
>
> That email literally provides Elisp code to run in order to measure the
> effect.
Thanks. However, that Lisp includes Org code, and I wonder why is
that relevant and how it could affect the results. Using regexp
search shouldn't need any Org code, and is quite simple to write, I
think. The main problem is to find a recipe that puts many markers in
a buffer. If this is what the Org code in that recipe is about, then
it's one situation where benchmarking ASCII vs non-ASCII buffers will
help. Another use case is a buffer with a lot of overlays.
- Re: Optimizing performance of buffer markers, (continued)
- 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 <=
- Re: Exposing buffer text modifications to Lisp, Ihor Radchenko, 2022/06/29
- Re: Exposing buffer text modifications to Lisp, Alan Mackenzie, 2022/06/20
- Re: Exposing buffer text modifications to Lisp, Ihor Radchenko, 2022/06/20
Re: Tree-sitter integration on feature/tree-sitter, Eli Zaretskii, 2022/06/17
- Re: Tree-sitter integration on feature/tree-sitter, Yuan Fu, 2022/06/17
- Re: Tree-sitter integration on feature/tree-sitter, Eli Zaretskii, 2022/06/17
- Re: Tree-sitter integration on feature/tree-sitter, Yuan Fu, 2022/06/17
- Re: Tree-sitter integration on feature/tree-sitter, Eli Zaretskii, 2022/06/18
- Re: Tree-sitter integration on feature/tree-sitter, Yuan Fu, 2022/06/18
- Re: Tree-sitter integration on feature/tree-sitter, Eli Zaretskii, 2022/06/18