org-item-re: Convert into defsubst

* lisp/org-list.el (org-item-re): Use faster `defsubst'.  This
function is called very frequently when parsing Org buffers by
`org-element--current-element'.
This commit is contained in:
Ihor Radchenko 2023-05-06 13:17:50 +02:00
parent b2482d9cc4
commit 3ce57e17a0
No known key found for this signature in database
GPG Key ID: 6470762A7DA11D8B
1 changed files with 1 additions and 1 deletions

View File

@ -373,7 +373,7 @@ group 4: description tag")
(defvar org--item-re-cache nil
"Results cache for `org-item-re'.")
(defun org-item-re ()
(defsubst org-item-re ()
"Return the correct regular expression for plain lists."
(or (plist-get
(plist-get org--item-re-cache