diff options
author | Mattias EngdegÄrd <mattiase@acm.org> | 2023-07-30 21:53:06 +0200 |
---|---|---|
committer | Mattias EngdegÄrd <mattiase@acm.org> | 2023-08-02 18:28:23 +0200 |
commit | d167888c5b7740af3300ee363c5121519dada0a2 (patch) | |
tree | a41574f41ae8c1376c50d950c6f7f60f952a4b4e /lisp/emacs-lisp/inline.el | |
parent | cda4396ade14aae126b06d7ea559fc0fcb4324fe (diff) | |
download | emacs-d167888c5b7740af3300ee363c5121519dada0a2.tar.gz emacs-d167888c5b7740af3300ee363c5121519dada0a2.tar.bz2 emacs-d167888c5b7740af3300ee363c5121519dada0a2.zip |
rx performance improvements
* lisp/emacs-lisp/rx.el (rx--generate-alt):
Treat the intervals and classes lists separately without joining,
to reduce allocation. Handle special cases first.
(rx--union-intervals):
Implement directly instead of using intersection and complement.
* test/lisp/emacs-lisp/rx-tests.el (rx-any): Adapt test, as some
character alternatives are now slightly different.
(rx--complement-intervals, rx--union-intervals)
(rx--intersect-intervals): New unit tests.
Diffstat (limited to 'lisp/emacs-lisp/inline.el')
0 files changed, 0 insertions, 0 deletions