[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] add compiled regexp primitive lisp object
From: |
Stefan Monnier |
Subject: |
Re: [PATCH] add compiled regexp primitive lisp object |
Date: |
Tue, 24 Dec 2024 10:14:29 -0500 |
User-agent: |
Gnus/5.13 (Gnus v5.13) |
>>> 1. They could be inspected from Elisp, and hopefully optimized
>>> better. For now, there is simply no way to detect which parts of
>>> regexps are slow and which are not.
>> You can now/already use `re--describe-compiled` to inspect the compiled
>> regexps used by Emacs's regexp engine.
> But only when Emacs is compiled with --enable-checking. Also, no
> documentation about the output is available. So, in its current form,
> `re--describe-compiled' is only usable for debugging Emacs itself. Not
> on Elisp-hacker level.
> `re--describe-compiled' can certainly be improved.
It's definitely crude, yes.
Mattias also had an ELisp package that did a better job and should now
work even without `--enable-checking`: https://github.com/mattiase/regexp-disasm
Stefan
- Re: [PATCH] add compiled regexp primitive lisp object, (continued)
- Re: [PATCH] add compiled regexp primitive lisp object, Eli Zaretskii, 2024/12/22
- Re: [PATCH] add compiled regexp primitive lisp object, Ihor Radchenko, 2024/12/22
- Re: [PATCH] add compiled regexp primitive lisp object, Eli Zaretskii, 2024/12/22
- Re: [PATCH] add compiled regexp primitive lisp object, Ihor Radchenko, 2024/12/22
- Re: [PATCH] add compiled regexp primitive lisp object, Björn Bidar, 2024/12/23
- Message not available
- Re: [PATCH] add compiled regexp primitive lisp object, Ihor Radchenko, 2024/12/23
- Re: [PATCH] add compiled regexp primitive lisp object, Eli Zaretskii, 2024/12/23
- Re: [PATCH] add compiled regexp primitive lisp object, Ihor Radchenko, 2024/12/23
- Re: [PATCH] add compiled regexp primitive lisp object, Stefan Monnier, 2024/12/24
- Re: [PATCH] add compiled regexp primitive lisp object, Ihor Radchenko, 2024/12/24
- Re: [PATCH] add compiled regexp primitive lisp object,
Stefan Monnier <=