]> git.eshelyaron.com Git - emacs.git/commit
Speed up skip-chars-{forward|reverse} with char classes
authorMattias Engdegård <mattiase@acm.org>
Mon, 8 May 2023 16:38:33 +0000 (18:38 +0200)
committerMattias Engdegård <mattiase@acm.org>
Tue, 9 May 2023 11:17:24 +0000 (13:17 +0200)
commit56468b52b2355a00c1dff2137c54136dbb031922
tree460e18c342a0aa0ecb1f362ae351901b0dba5b45
parente9258a882a9b54f2992ae8ffd73e3da6bb3c4556
Speed up skip-chars-{forward|reverse} with char classes

* src/regex-emacs.h (re_wctype_t): Add RECC_NUM_CLASSES.
* src/syntax.c (skip_chars, in_classes): Use an array on the stack
instead of a Lisp list for storing character classes.
Don't check all classes if there is a match in one.
Remove useless handle_iso_classes argument.
src/regex-emacs.h
src/syntax.c