]> git.eshelyaron.com Git - emacs.git/commit
org-cite-list-citations: Cache footnote-definition searches
authorIhor Radchenko <yantar92@gmail.com>
Thu, 16 Jun 2022 02:43:29 +0000 (10:43 +0800)
committerEli Zaretskii <eliz@gnu.org>
Thu, 16 Jun 2022 07:55:05 +0000 (10:55 +0300)
commitf94e93a6eec92d834a6b545d8d4b68280b0993b0
treec9532be580b468bb22665a704b1634f2f68509e0
parent4f37a3b299bcec71a0e9bdd84b7b226494006fe4
org-cite-list-citations: Cache footnote-definition searches

* lisp/org/oc.el (org-cite-list-citations): Avoid quadratic complexity.
Pre-calculate list of all footnote definitions and cache the footnote
label search hits.  Do not make `org-element-map' accumulate unused
result.
lisp/org/oc.el